From c5f0b17f390d213f3a0ad1be3694244e8c0914dd Mon Sep 17 00:00:00 2001 From: Simon McEnlly Date: Thu, 25 Jan 2024 15:34:05 +1000 Subject: [PATCH] fix: bug with latest version of @swc/wasm causing "error when attempting to validate swc compiler options"; fixes https://github.com/TypeStrong/ts-node/issues/2059 --- src/transpilers/swc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,