File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ function swc(options: PluginOptions = {}): RollupPlugin {
111111
112112 const isTypeScript = ext === '.ts' || ext === '.mts' || ext === '.cts' || ext === '.tsx' ;
113113 const isTsx = ext === '.tsx' ;
114- const isJsx = ext === '.jsx' ;
115114
116115 const tsconfigOptions
117116 = options . tsconfig === false
@@ -125,7 +124,7 @@ function swc(options: PluginOptions = {}): RollupPlugin {
125124 externalHelpers : tsconfigOptions . importHelpers ,
126125 parser : {
127126 syntax : isTypeScript ? 'typescript' : 'ecmascript' ,
128- [ isTypeScript ? 'tsx' : 'jsx' ] : isTypeScript ? isTsx : isJsx ,
127+ [ isTypeScript ? 'tsx' : 'jsx' ] : isTypeScript ? isTsx : true ,
129128 decorators : ! isLegacyTypeScript || tsconfigOptions . experimentalDecorators
130129 } ,
131130 transform : {
You can’t perform that action at this time.
0 commit comments