Skip to content

Commit

Permalink
fix: do not use esModule interop for codegen build
Browse files Browse the repository at this point in the history
this caused typescript imports to fail in cjs bundle

ref #576
  • Loading branch information
Xiphe committed Feb 13, 2024
1 parent eb4cca4 commit 359155e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/codegen/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export default defineConfig(({ mode }) => ({
formats: [mode === "esm" ? "es" : "cjs"],
},
rollupOptions: {
output: {
exports: "auto",
interop: "esModule",
},
external(source) {
return external.some(
(dep) => source === dep || source.startsWith(`${dep}/`),
Expand Down

0 comments on commit 359155e

Please sign in to comment.