From a85f69d30fba6620ac15cb7ffa3867b6b79a4acf Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Wed, 1 Oct 2025 19:11:25 -0400 Subject: [PATCH] fix: Configure Vite to externalize Node.js modules for client build --- nuxt.config.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 767c989..4eb2656 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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'] } } },