From ff7b1de4fbe277653a2c1678c331b662bcb32eb5 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 14 Mar 2023 11:46:52 -0700 Subject: [PATCH] Update src/services/transpile.ts --- src/services/transpile.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/transpile.ts b/src/services/transpile.ts index 0e7790af3e8c3..eb7fb2da6d3c0 100644 --- a/src/services/transpile.ts +++ b/src/services/transpile.ts @@ -73,9 +73,11 @@ export function transpileModule(input: string, transpileOptions: TranspileOption for (const option of transpileOptionValueCompilerOptions) { // Do not set redundant config options if `verbatimModuleSyntax` was supplied. - if (!options.verbatimModuleSyntax || !optionsRedundantWithVerbatimModuleSyntax.has(option.name)) { - options[option.name] = option.transpileOptionValue; + if (options.verbatimModuleSyntax && optionsRedundantWithVerbatimModuleSyntax.has(option.name)) { + continue; } + + options[option.name] = option.transpileOptionValue; } // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths.