mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-05-01 23:36:40 +08:00
perf: do not externalize node builtin modules for the renderer (#61)
This commit is contained in:
parent
e72e1ea056
commit
067c333aeb
@ -251,8 +251,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
|||||||
target: chromeTarget,
|
target: chromeTarget,
|
||||||
modulePreload: { polyfill: false },
|
modulePreload: { polyfill: false },
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: findInput(root),
|
input: findInput(root)
|
||||||
external: [...builtinModules.flatMap(m => [m, `node:${m}`])]
|
|
||||||
},
|
},
|
||||||
reportCompressedSize: false,
|
reportCompressedSize: false,
|
||||||
minify: false,
|
minify: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user