We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e66eb commit fc8b892Copy full SHA for fc8b892
vite.config.ts
@@ -106,7 +106,11 @@ export default defineConfig({
106
rollupOptions: {
107
external: (id) => {
108
// Externalize postgres from client bundle
109
- return id.includes('postgres')
+ if (id.includes('postgres')) return true
110
+ // Externalize Node.js built-in modules that linked packages import
111
+ // These should never be in client bundles
112
+ if (id.startsWith('node:')) return true
113
+ return false
114
},
115
output: {
116
manualChunks: (id) => {
0 commit comments