Skip to content

Commit 61f4f86

Browse files
author
A.P.A. Slaa
committed
fix: exclude nodejs native modules from vite
1 parent a596b11 commit 61f4f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
fileName: (format) => `index.${format}.js`
1212
},
1313
rollupOptions: {
14-
external: ["crypto"],
14+
external: ["crypto", 'path', 'fs', 'worker_threads'],
1515
},
1616
sourcemap: true,
1717
target: 'node22'

0 commit comments

Comments
 (0)