mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
chore: UPDATE vitejs-plugin-electron
This commit is contained in:
parent
65a7ea6d85
commit
ebb3ae5581
@ -76,7 +76,7 @@
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.2.4",
|
||||
"vite": "^2.2.4",
|
||||
"vitejs-plugin-electron": "^0.0.5"
|
||||
"vitejs-plugin-electron": "^0.1.0"
|
||||
},
|
||||
"keywords": [
|
||||
"vite",
|
||||
|
@ -3,7 +3,6 @@ require('dotenv').config({ path: join(__dirname, '.env') })
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { join } from 'path'
|
||||
import { builtins } from './script/utils'
|
||||
import electron from 'vitejs-plugin-electron'
|
||||
|
||||
const root = join(__dirname, 'src/render')
|
||||
@ -34,15 +33,6 @@ export default defineConfig(env => {
|
||||
commonjsOptions: {},
|
||||
assetsDir: '', // 相对路径 加载问题
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
external: [
|
||||
...builtins(),
|
||||
'electron',
|
||||
],
|
||||
output: {
|
||||
format: 'cjs',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -2816,10 +2816,10 @@ vite@^2.2.4:
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.1"
|
||||
|
||||
vitejs-plugin-electron@^0.0.5:
|
||||
version "0.0.5"
|
||||
resolved "https://registry.yarnpkg.com/vitejs-plugin-electron/-/vitejs-plugin-electron-0.0.5.tgz#4c561f5aaa7dcbe3e49805fd89e45299709a984a"
|
||||
integrity sha512-82fw7iQerT5/pMuLcadFtVVpvkIVPSefHXOkK2ptuCIwsV4Z7zzydwQPJjZ2zYPA7J1flEakHiJeidxyCNgA9Q==
|
||||
vitejs-plugin-electron@^0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/vitejs-plugin-electron/-/vitejs-plugin-electron-0.1.0.tgz#308f603628ffc9a1821ffa9a7f7d4f1dc446796f"
|
||||
integrity sha512-ftoKqmyaK7DsHe7FXPcOomUoZZ9EqpjoWGbRaXdXryE51RwpxI08ld6y/DEc08xErwu4SesTnLLQi8ZCet395A==
|
||||
dependencies:
|
||||
acorn "^8.2.4"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user