Skip to content

Commit

Permalink
fix: swc reject when set parser to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
hewel committed Nov 22, 2021
1 parent 2de5ec1 commit 3770470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transpiler/swc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getSwcConfigFactory({fileSystem, swcConfig, cwd, browserslist, p
...inputConfig.jsc,
parser: {
syntax: "ecmascript",
jsx: false,
...(inputConfig.jsc?.parser?.syntax === "typescript" ? {} : {jsx: false}),
...inputConfig.jsc?.parser
},
...FORCED_SWC_JSC_OPTIONS
Expand Down

0 comments on commit 3770470

Please sign in to comment.