Skip to content

Commit

Permalink
fix: Externalise native node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCommieAxolotl committed Aug 23, 2023
1 parent 5381d33 commit 6a0cb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},
outDir: "dist",
rollupOptions: {
external: ["node:http", ...builtinModules],
external: ["node:http", "node:fs/promises", "node:fs", "node:path", ...builtinModules],
plugins: [!IS_DEV && terser({})].filter(Boolean),
},
},
Expand Down

0 comments on commit 6a0cb4d

Please sign in to comment.