mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-24 02:20:27 +08:00
feat: add sqlite3 module to rollup external option
This commit is contained in:
parent
68f660fbc3
commit
c71d5aa661
@ -57,7 +57,7 @@ export function electronMainVitePlugin(options?: ElectronPluginOptions): Plugin[
|
|||||||
formats: ['cjs']
|
formats: ['cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['electron', ...builtinModules.flatMap(m => [m, `node:${m}`])],
|
external: ['electron', 'sqlite3', ...builtinModules.flatMap(m => [m, `node:${m}`])],
|
||||||
output: {
|
output: {
|
||||||
entryFileNames: '[name].js'
|
entryFileNames: '[name].js'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user