Skip to content

Commit ff7b1de

Browse files
Update src/services/transpile.ts
1 parent d83a0d7 commit ff7b1de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/services/transpile.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ export function transpileModule(input: string, transpileOptions: TranspileOption
7373

7474
for (const option of transpileOptionValueCompilerOptions) {
7575
// Do not set redundant config options if `verbatimModuleSyntax` was supplied.
76-
if (!options.verbatimModuleSyntax || !optionsRedundantWithVerbatimModuleSyntax.has(option.name)) {
77-
options[option.name] = option.transpileOptionValue;
76+
if (options.verbatimModuleSyntax && optionsRedundantWithVerbatimModuleSyntax.has(option.name)) {
77+
continue;
7878
}
79+
80+
options[option.name] = option.transpileOptionValue;
7981
}
8082

8183
// transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths.

0 commit comments

Comments
 (0)