mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
chore: remove vite-plugin-electron/polyfill-exports
This commit is contained in:
parent
6c7e947871
commit
fcce0884fa
@ -3,7 +3,6 @@ import { defineConfig } from 'vite'
|
|||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import electron from 'vite-plugin-electron'
|
import electron from 'vite-plugin-electron'
|
||||||
import renderer from 'vite-plugin-electron/renderer'
|
import renderer from 'vite-plugin-electron/renderer'
|
||||||
import polyfillExports from 'vite-plugin-electron/polyfill-exports'
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -33,11 +32,5 @@ export default defineConfig({
|
|||||||
}),
|
}),
|
||||||
// Enable use Electron, Node.js API in Renderer-process
|
// Enable use Electron, Node.js API in Renderer-process
|
||||||
renderer(),
|
renderer(),
|
||||||
// TODO: integrate into 'vite-plugin-electron' by default
|
|
||||||
polyfillExports(),
|
|
||||||
],
|
],
|
||||||
build: {
|
|
||||||
// TODO: integrate into 'vite-plugin-electron' by default
|
|
||||||
emptyOutDir: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user