fix: use rollupConfig.external to prevent Nitro from bundling better-sqlite3
nitro.externals.external doesn't prevent Rollup from inlining the require. rollupConfig.external tells Rollup directly to leave the import as-is, so Node resolves it from node_modules at runtime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
6c8ad5c4f9
commit
11d28a1b0d
+1
-1
@@ -10,7 +10,7 @@ export default defineNuxtConfig({
|
||||
|
||||
nitro: {
|
||||
experimental: { tasks: true },
|
||||
externals: {
|
||||
rollupConfig: {
|
||||
external: ['better-sqlite3'],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user