We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83dd1ee commit 4b9dceeCopy full SHA for 4b9dcee
src/util/ts-util.ts
@@ -34,7 +34,7 @@ export function needsImportPreservationLogic(
34
35
// If value imports shouldn't always be preserved, we'll have to perform import preservation logic
36
// eslint-disable-next-line @typescript-eslint/no-deprecated
37
- const preserveValueImports = Boolean(compilerOptions.preserveValueImports);
+ const preserveValueImports = !Boolean(compilerOptions.verbatimModuleSyntax) && Boolean(compilerOptions.preserveValueImports);
38
if (!Boolean(preserveValueImports)) return true;
39
40
// Only TypeScript v4.5 and newer supports the `preserValueImports` Compiler option
0 commit comments