Skip to content

Commit 4b9dcee

Browse files
committed
chore: fix compatibility with verbatimModuleSyntax
1 parent 83dd1ee commit 4b9dcee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/ts-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function needsImportPreservationLogic(
3434

3535
// If value imports shouldn't always be preserved, we'll have to perform import preservation logic
3636
// eslint-disable-next-line @typescript-eslint/no-deprecated
37-
const preserveValueImports = Boolean(compilerOptions.preserveValueImports);
37+
const preserveValueImports = !Boolean(compilerOptions.verbatimModuleSyntax) && Boolean(compilerOptions.preserveValueImports);
3838
if (!Boolean(preserveValueImports)) return true;
3939

4040
// Only TypeScript v4.5 and newer supports the `preserValueImports` Compiler option

0 commit comments

Comments
 (0)