fix: Configure Vite to externalize Node.js modules for client build

This commit is contained in:
Ryderjj89
2025-10-01 19:11:25 -04:00
parent 2f3b427477
commit a85f69d30f

View File

@@ -18,14 +18,12 @@ export default defineNuxtConfig({
nitro: {
experimental: {
wasm: true
},
externals: {
inline: ['better-sqlite3'],
external: ['path', 'fs', 'crypto', 'bcryptjs']
},
rollupConfig: {
output: {
sourcemap: false
}
},
vite: {
build: {
rollupOptions: {
external: ['better-sqlite3', 'path', 'fs', 'crypto', 'bcryptjs']
}
}
},