Skip to content

Commit

Permalink
adjust config
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Nov 12, 2024
1 parent bf34417 commit 1346eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export default defineConfig({
fileName: "main",
},
rollupOptions: {
external: [...builtinModules, /^node:/],
external: [...builtinModules, /^node:/], // without it rollup tries to "bundle" node built-in modules
output: {
inlineDynamicImports: true, // prevent multiple chunks since it is easier for CF to work with a single file
},
},
},
plugins: [
Expand Down

0 comments on commit 1346eb4

Please sign in to comment.