Skip to content

Commit

Permalink
fix: set onlyRemoveTypeImports: false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 20, 2024
1 parent b165069 commit 84b75a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vite/src/node/plugins/oxc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ export async function transformWithOxc(
`preserveValueImports=${preserveValueImports} + importsNotUsedAsValues=${importsNotUsedAsValues} is not supported by oxc.` +
'Please migrate to the new verbatimModuleSyntax option.',
)
resolvedOptions.typescript ??= {}
resolvedOptions.typescript.onlyRemoveTypeImports = false
}
} else {
resolvedOptions.typescript ??= {}
resolvedOptions.typescript.onlyRemoveTypeImports = false
}

const resolvedTsconfigTarget = resolveTsconfigTarget(
Expand Down

0 comments on commit 84b75a3

Please sign in to comment.