diff --git a/src/transpilers/swc.ts b/src/transpilers/swc.ts index ea41d534c..1a15ac6e0 100644 --- a/src/transpilers/swc.ts +++ b/src/transpilers/swc.ts @@ -225,7 +225,7 @@ export function createSwcOptions( parser: { syntax: 'typescript', tsx: isTsx, - decorators: experimentalDecorators, + decorators: !!experimentalDecorators, dynamicImport: true, importAssertions: true, } as swcWasm.TsParserConfig,