mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-05-01 15:26:41 +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,
|
||||
modulePreload: { polyfill: false },
|
||||
rollupOptions: {
|
||||
input: findInput(root),
|
||||
external: [...builtinModules.flatMap(m => [m, `node:${m}`])]
|
||||
input: findInput(root)
|
||||
},
|
||||
reportCompressedSize: false,
|
||||
minify: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user