From 97af89caf5e3bcab21dd7b3fcaa38bbb1e9fe4bb Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Thu, 15 Aug 2024 12:10:12 +0800 Subject: [PATCH] feat(bundler-vite): upgrade vite to v5.4 (close #1598) --- package.json | 2 +- packages/bundler-vite/package.json | 2 +- pnpm-lock.yaml | 44 +++++++++++++++++------------- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 65639f730b..a20d21c675 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "tsconfig-vuepress": "^4.5.0", "tsup": "^8.2.4", "typescript": "^5.5.4", - "vite": "~5.3.5", + "vite": "~5.4.0", "vitest": "^2.0.5", "vue-tsc": "^2.0.29" }, diff --git a/packages/bundler-vite/package.json b/packages/bundler-vite/package.json index f610f75c8d..fb79e14300 100644 --- a/packages/bundler-vite/package.json +++ b/packages/bundler-vite/package.json @@ -45,7 +45,7 @@ "postcss": "^8.4.41", "postcss-load-config": "^6.0.1", "rollup": "^4.20.0", - "vite": "~5.3.5", + "vite": "~5.4.0", "vue": "^3.4.37", "vue-router": "^4.4.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f18d393fe..f488eb7d1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,7 +25,7 @@ importers: version: 1.18.5 '@vitest/coverage-istanbul': specifier: ^2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6)) + version: 2.0.5(vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6)) bumpp: specifier: ^9.5.1 version: 9.5.1(magicast@0.3.4) @@ -69,11 +69,11 @@ importers: specifier: ^5.5.4 version: 5.5.4 vite: - specifier: ~5.3.5 - version: 5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + specifier: ~5.4.0 + version: 5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) vitest: specifier: ^2.0.5 - version: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + version: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) vue-tsc: specifier: ^2.0.29 version: 2.0.29(typescript@5.5.4) @@ -122,7 +122,7 @@ importers: dependencies: '@vitejs/plugin-vue': specifier: ^5.1.2 - version: 5.1.2(vite@5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6))(vue@3.4.37(typescript@5.5.4)) + version: 5.1.2(vite@5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6))(vue@3.4.37(typescript@5.5.4)) '@vuepress/client': specifier: workspace:* version: link:../client @@ -151,8 +151,8 @@ importers: specifier: ^4.20.0 version: 4.20.0 vite: - specifier: ~5.3.5 - version: 5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + specifier: ~5.4.0 + version: 5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) vue: specifier: ^3.4.37 version: 3.4.37(typescript@5.5.4) @@ -5175,8 +5175,8 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite@5.3.5: - resolution: {integrity: sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==} + vite@5.4.0: + resolution: {integrity: sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -5184,6 +5184,7 @@ packages: less: '*' lightningcss: ^1.21.0 sass: '*' + sass-embedded: '*' stylus: '*' sugarss: '*' terser: ^5.4.0 @@ -5196,6 +5197,8 @@ packages: optional: true sass: optional: true + sass-embedded: + optional: true stylus: optional: true sugarss: @@ -6270,12 +6273,12 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-vue@5.1.2(vite@5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6))(vue@3.4.37(typescript@5.5.4))': + '@vitejs/plugin-vue@5.1.2(vite@5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6))(vue@3.4.37(typescript@5.5.4))': dependencies: - vite: 5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + vite: 5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) vue: 3.4.37(typescript@5.5.4) - '@vitest/coverage-istanbul@2.0.5(vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6))': + '@vitest/coverage-istanbul@2.0.5(vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6))': dependencies: '@istanbuljs/schema': 0.1.3 debug: 4.3.6 @@ -6287,7 +6290,7 @@ snapshots: magicast: 0.3.4 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + vitest: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) transitivePeerDependencies: - supports-color @@ -10480,24 +10483,25 @@ snapshots: vary@1.1.2: {} - vite-node@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6): + vite-node@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6): dependencies: cac: 6.7.14 debug: 4.3.6 pathe: 1.1.2 tinyrainbow: 1.2.0 - vite: 5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + vite: 5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) transitivePeerDependencies: - '@types/node' - less - lightningcss - sass + - sass-embedded - stylus - sugarss - supports-color - terser - vite@5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6): + vite@5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6): dependencies: esbuild: 0.21.5 postcss: 8.4.41 @@ -10507,9 +10511,10 @@ snapshots: fsevents: 2.3.3 lightningcss: 1.26.0 sass: 1.77.8 + sass-embedded: 1.77.8 terser: 5.31.6 - vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6): + vitest@2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6): dependencies: '@ampproject/remapping': 2.3.0 '@vitest/expect': 2.0.5 @@ -10527,8 +10532,8 @@ snapshots: tinybench: 2.9.0 tinypool: 1.0.0 tinyrainbow: 1.2.0 - vite: 5.3.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) - vite-node: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass@1.77.8)(terser@5.31.6) + vite: 5.4.0(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) + vite-node: 2.0.5(@types/node@22.3.0)(lightningcss@1.26.0)(sass-embedded@1.77.8)(sass@1.77.8)(terser@5.31.6) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.3.0 @@ -10536,6 +10541,7 @@ snapshots: - less - lightningcss - sass + - sass-embedded - stylus - sugarss - supports-color