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