Skip to content

Commit

Permalink
fix(helper): swc-register typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jul 7, 2022
1 parent 6fe696b commit 5fa352a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/taro-helper/src/swcRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ export class InjectDefineConfigHeader extends Visitor {
}
}

export default function createSwcRegister ({ only, plugin }) {
interface ICreateSwcRegisterParam {
only
plugin?
}

export default function createSwcRegister ({ only, plugin }: ICreateSwcRegisterParam) {
const config: Record<string, any> = {
only: Array.from(new Set([...only])),
jsc: {
Expand Down

0 comments on commit 5fa352a

Please sign in to comment.