fix: use modulePreload.polyfill instead polyfillModulePreload
This commit is contained in:
parent
39f548a30a
commit
6bae6ac6b4
|
@ -244,7 +244,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
|||
build: {
|
||||
outDir: path.resolve(root, 'out', 'renderer'),
|
||||
target: chromeTarget,
|
||||
polyfillModulePreload: false,
|
||||
modulePreload: { polyfill: false },
|
||||
rollupOptions: {
|
||||
input: findInput(root),
|
||||
external: [...builtinModules.flatMap(m => [m, `node:${m}`])]
|
||||
|
|
Loading…
Reference in a new issue