Skip to content

Commit

Permalink
fix: ignore babel config when running restore-jsx (#6047)
Browse files Browse the repository at this point in the history
  • Loading branch information
arbassett committed Dec 12, 2021
1 parent 1ded1a8 commit 9c2843c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-react/src/jsx-runtime/restore-jsx.ts
Expand Up @@ -48,6 +48,8 @@ export async function restoreJSX(
babelRestoreJSX ||= import('./babel-restore-jsx')

const result = await babel.transformAsync(code, {
babelrc: false,
configFile: false,
ast: true,
code: false,
filename,
Expand Down

0 comments on commit 9c2843c

Please sign in to comment.