Skip to content

Commit

Permalink
fix: should ignore user provided babel configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jun 29, 2021
1 parent 6496be1 commit 12d7b54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function transformCode(this: TransformPluginContext, srcCode: string, id: string
sourceMaps: true,
comments: true,
compact: true,
babelrc: false,
configFile: false,
parserOpts: {
allowReturnOutsideFunction: true,
sourceType: 'module',
Expand Down

0 comments on commit 12d7b54

Please sign in to comment.