Skip to content

Commit 9c2843c

Browse files
authored
fix: ignore babel config when running restore-jsx (#6047)
1 parent 1ded1a8 commit 9c2843c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/plugin-react/src/jsx-runtime/restore-jsx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export async function restoreJSX(
4848
babelRestoreJSX ||= import('./babel-restore-jsx')
4949

5050
const result = await babel.transformAsync(code, {
51+
babelrc: false,
52+
configFile: false,
5153
ast: true,
5254
code: false,
5355
filename,

0 commit comments

Comments
 (0)