From 71a559f1a9bf13e95963ed7accadac3f00b169e0 Mon Sep 17 00:00:00 2001 From: Aaron Bassett Date: Thu, 9 Dec 2021 19:00:03 -0500 Subject: [PATCH] fix: ignore babel config when running restore-jsx --- packages/plugin-react/src/jsx-runtime/restore-jsx.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-react/src/jsx-runtime/restore-jsx.ts b/packages/plugin-react/src/jsx-runtime/restore-jsx.ts index 250fe43ce4d0c8..095f7c586e43a1 100644 --- a/packages/plugin-react/src/jsx-runtime/restore-jsx.ts +++ b/packages/plugin-react/src/jsx-runtime/restore-jsx.ts @@ -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,