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…
Reference in a new issue