Skip to content

Commit

Permalink
Update src/services/transpile.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser authored Mar 14, 2023
1 parent d83a0d7 commit ff7b1de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ff7b1de

Please sign in to comment.