Skip to content

Commit 662a649

Browse files
committed
🔧 build: 更新依赖
1 parent d265b18 commit 662a649

30 files changed

Lines changed: 364 additions & 90 deletions

auto-imports.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ declare global {
4848
const isRef: typeof import('vue').isRef
4949
const isShallow: typeof import('vue').isShallow
5050
const makeDestructurable: typeof import('@vueuse/core').makeDestructurable
51-
const manualResetRef: typeof import('@vueuse/core').manualResetRef
5251
const markRaw: typeof import('vue').markRaw
5352
const nextTick: typeof import('vue').nextTick
5453
const onActivated: typeof import('vue').onActivated
@@ -86,7 +85,6 @@ declare global {
8685
const refAutoReset: typeof import('@vueuse/core').refAutoReset
8786
const refDebounced: typeof import('@vueuse/core').refDebounced
8887
const refDefault: typeof import('@vueuse/core').refDefault
89-
const refManualReset: typeof import('@vueuse/core').refManualReset
9088
const refThrottled: typeof import('@vueuse/core').refThrottled
9189
const refWithControl: typeof import('@vueuse/core').refWithControl
9290
const resolveComponent: typeof import('vue').resolveComponent

electron.vite.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolve } from "path";
22
import { MainEnv } from "./env";
3-
import { defineConfig, externalizeDepsPlugin, loadEnv } from "electron-vite";
3+
import { defineConfig, loadEnv } from "electron-vite";
44
import { NaiveUiResolver } from "unplugin-vue-components/resolvers";
55
import vue from "@vitejs/plugin-vue";
66
import AutoImport from "unplugin-auto-import/vite";
@@ -9,20 +9,18 @@ import viteCompression from "vite-plugin-compression";
99
// import VueDevTools from "vite-plugin-vue-devtools";
1010
import wasm from "vite-plugin-wasm";
1111

12-
export default defineConfig(({ command, mode }) => {
12+
export default defineConfig(({ mode }) => {
1313
// 读取环境变量
1414
const getEnv = (name: keyof MainEnv): string => {
1515
return loadEnv(mode, process.cwd())[name];
1616
};
17-
console.log(command);
1817
// 获取端口
1918
const webPort: number = Number(getEnv("VITE_WEB_PORT") || 14558);
2019
const servePort: number = Number(getEnv("VITE_SERVER_PORT") || 25884);
2120
// 返回配置
2221
return {
2322
// 主进程
2423
main: {
25-
plugins: [externalizeDepsPlugin()],
2624
build: {
2725
publicDir: resolve(__dirname, "public"),
2826
rollupOptions: {
@@ -34,7 +32,6 @@ export default defineConfig(({ command, mode }) => {
3432
},
3533
// 预加载
3634
preload: {
37-
plugins: [externalizeDepsPlugin()],
3835
build: {
3936
rollupOptions: {
4037
input: {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "splayer",
33
"productName": "SPlayer",
4-
"version": "3.0.0-beta.7",
4+
"version": "3.0.0-beta.8",
55
"description": "A minimalist music player",
66
"main": "./out/main/index.js",
77
"author": "imsyy",
@@ -40,7 +40,7 @@
4040
"@electron-toolkit/utils": "^4.0.0",
4141
"@imsyy/color-utils": "^1.0.2",
4242
"@material/material-color-utilities": "^0.3.0",
43-
"@neteasecloudmusicapienhanced/api": "^4.29.17",
43+
"@neteasecloudmusicapienhanced/api": "^4.29.18",
4444
"@pixi/app": "^7.4.3",
4545
"@pixi/core": "^7.4.3",
4646
"@pixi/display": "^7.4.3",
@@ -99,7 +99,7 @@
9999
"electron": "38.2.2",
100100
"electron-builder": "^26.0.12",
101101
"electron-log": "^5.4.3",
102-
"electron-vite": "^4.0.1",
102+
"electron-vite": "^5.0.0",
103103
"eslint": "^9.39.1",
104104
"eslint-plugin-vue": "^10.6.2",
105105
"fast-glob": "^3.3.3",
@@ -112,7 +112,7 @@
112112
"typescript": "^5.9.3",
113113
"unplugin-auto-import": "^20.3.0",
114114
"unplugin-vue-components": "^29.2.0",
115-
"vite": "^7.2.6",
115+
"vite": "^7.3.0",
116116
"vite-plugin-compression": "^0.5.1",
117117
"vite-plugin-vue-devtools": "^8.0.5",
118118
"vite-plugin-wasm": "^3.5.0",

0 commit comments

Comments
 (0)