From a2fc213c3dec632e07b7f38f0047f08222c0a17d Mon Sep 17 00:00:00 2001 From: Alec Mev Date: Thu, 28 Jul 2022 03:38:46 +0300 Subject: [PATCH] Pass jsxImportSource to swc --- src/transpilers/swc.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transpilers/swc.ts b/src/transpilers/swc.ts index 89e9bd496..55a0a4f80 100644 --- a/src/transpilers/swc.ts +++ b/src/transpilers/swc.ts @@ -149,6 +149,7 @@ export function createSwcOptions( jsx, jsxFactory, jsxFragmentFactory, + jsxImportSource, strict, alwaysStrict, noImplicitUseStrict, @@ -246,6 +247,7 @@ export function createSwcOptions( pragma: jsxFactory!, pragmaFrag: jsxFragmentFactory!, runtime: jsxRuntime, + importSource: jsxImportSource, } as swcTypes.ReactConfig, }, keepClassNames,