mirror of
https://github.com/jeffvli/feishin.git
synced 2026-11-20 00:51:26 -08:00
chore(deps): migrate electron-vite to v5
Drop deprecated externalizeDepsPlugin; v5 externalizes deps by default.
This commit is contained in:
1 parent
4b0ab4e07f
commit
fb0041a864
3 files changed
+8
-10
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { defineConfig, externalizeDepsPlugin, UserConfig } from 'electron-vite';
|
||||
import { defineConfig, UserConfig } from 'electron-vite';
|
||||
import { resolve } from 'path';
|
||||
import conditionalImportPlugin from 'vite-plugin-conditional-import';
|
||||
import dynamicImportPlugin from 'vite-plugin-dynamic-import';
|
||||
@@ -24,7 +24,6 @@ const createConfig = (isDevelopment: boolean): UserConfig => ({
|
||||
'import.meta.env.IS_WIN': JSON.stringify(currentOSEnv === 'win32'),
|
||||
},
|
||||
plugins: [
|
||||
externalizeDepsPlugin(),
|
||||
dynamicImportPlugin(),
|
||||
conditionalImportPlugin({
|
||||
currentEnv: currentOSEnv,
|
||||
@@ -42,7 +41,6 @@ const createConfig = (isDevelopment: boolean): UserConfig => ({
|
||||
build: {
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'/@/preload': resolve('src/preload'),
|
||||
|
||||
+1
-1
@@ -175,7 +175,7 @@
|
||||
"electron": "^41.7.1",
|
||||
"electron-builder": "^26.15.7",
|
||||
"electron-devtools-installer": "^4.0.0",
|
||||
"electron-vite": "^4.0.1",
|
||||
"electron-vite": "^5.0.0",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-plugin-perfectionist": "^4.15.1",
|
||||
"eslint-plugin-prettier": "^5.5.6",
|
||||
|
||||
Generated
+6
-6
@@ -299,8 +299,8 @@ importers:
|
||||
specifier: ^4.0.0
|
||||
version: 4.0.0
|
||||
electron-vite:
|
||||
specifier: ^4.0.1
|
||||
version: 4.0.1([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))
|
||||
specifier: ^5.0.0
|
||||
version: 5.0.0([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))
|
||||
eslint:
|
||||
specifier: ^9.39.4
|
||||
version: 9.39.4([email protected])
|
||||
@@ -3124,8 +3124,8 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==}
|
||||
|
||||
electron-vite@4.0.1:
|
||||
resolution: {integrity: sha512-QqacJbA8f1pmwUTqki1qLL5vIBaOQmeq13CZZefZ3r3vKVaIoC7cpoTgE+KPKxJDFTax+iFZV0VYvLVWPiQ8Aw==}
|
||||
electron-vite@5.0.0:
|
||||
resolution: {integrity: sha512-OHp/vjdlubNlhNkPkL/+3JD34ii5ov7M0GpuXEVdQeqdQ3ulvVR7Dg/rNBLfS5XPIFwgoBLDf9sjjrL+CuDyRQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -7686,7 +7686,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@types/estree': 1.0.9
|
||||
estree-walker: 2.0.2
|
||||
picomatch: 4.0.4
|
||||
picomatch: 4.0.5
|
||||
optionalDependencies:
|
||||
rollup: 4.62.0
|
||||
|
||||
@@ -8924,7 +8924,7 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
electron-vite@4.0.1([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])):
|
||||
electron-vite@5.0.0([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])):
|
||||
dependencies:
|
||||
'@babel/core': 7.29.7
|
||||
'@babel/plugin-transform-arrow-functions': 7.29.7(@babel/[email protected])
|
||||
|
||||
Reference in new issue
Block a user