Skip to content

Commit e1e9ec3

Browse files
committed
feat: upgrade to vite 5 and esbuild 0.19
1 parent 518fd7d commit e1e9ec3

File tree

9 files changed

+380
-154
lines changed

9 files changed

+380
-154
lines changed

ecosystem/plugin-medium-zoom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@vuepress/client": "workspace:*",
4141
"@vuepress/core": "workspace:*",
4242
"@vuepress/utils": "workspace:*",
43-
"medium-zoom": "^1.0.8",
43+
"medium-zoom": "^1.1.0",
4444
"vue": "^3.3.8"
4545
},
4646
"publishConfig": {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
},
3939
"prettier": "prettier-config-vuepress",
4040
"devDependencies": {
41-
"@commitlint/cli": "^18.4.1",
42-
"@commitlint/config-conventional": "^18.4.0",
41+
"@commitlint/cli": "^18.4.2",
42+
"@commitlint/config-conventional": "^18.4.2",
4343
"@types/node": "^20.9.0",
4444
"@types/webpack-env": "^1.18.4",
4545
"@vitest/coverage-istanbul": "^0.34.6",
@@ -58,7 +58,7 @@
5858
"tsconfig-vuepress": "^4.5.0",
5959
"tsup": "^7.2.0",
6060
"typescript": "^5.2.2",
61-
"vite": "~4.5.0",
61+
"vite": "~5.0.0",
6262
"vitest": "^0.34.6"
6363
},
6464
"packageManager": "[email protected]",

packages/bundler-vite/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"clean": "rimraf dist"
3434
},
3535
"dependencies": {
36-
"@vitejs/plugin-vue": "^4.4.1",
36+
"@vitejs/plugin-vue": "^4.5.0",
3737
"@vuepress/client": "workspace:*",
3838
"@vuepress/core": "workspace:*",
3939
"@vuepress/shared": "workspace:*",
@@ -42,8 +42,8 @@
4242
"connect-history-api-fallback": "^2.0.0",
4343
"postcss": "^8.4.31",
4444
"postcss-load-config": "^4.0.1",
45-
"rollup": "^3.29.4",
46-
"vite": "~4.5.0",
45+
"rollup": "^4.4.1",
46+
"vite": "~5.0.0",
4747
"vue": "^3.3.8",
4848
"vue-router": "^4.2.5"
4949
},

packages/bundler-vite/src/plugins/constantsReplacementPlugin.ts

Lines changed: 0 additions & 77 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export * from './constantsReplacementPlugin.js'
21
export * from './mainPlugin.js'
32
export * from './userConfigPlugin.js'

packages/bundler-vite/src/resolveViteConfig.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { default as vuePlugin } from '@vitejs/plugin-vue'
22
import type { App } from '@vuepress/core'
33
import type { InlineConfig } from 'vite'
44
import { mergeConfig } from 'vite'
5-
import {
6-
constantsReplacementPlugin,
7-
mainPlugin,
8-
userConfigPlugin,
9-
} from './plugins/index.js'
5+
import { mainPlugin, userConfigPlugin } from './plugins/index.js'
106
import type { ViteBundlerOptions } from './types.js'
117

128
export const resolveViteConfig = async ({
@@ -30,7 +26,6 @@ export const resolveViteConfig = async ({
3026
},
3127
plugins: [
3228
vuePlugin(options.vuePluginOptions),
33-
constantsReplacementPlugin(app),
3429
mainPlugin({ app, isBuild, isServer }),
3530
userConfigPlugin(options),
3631
],

packages/bundler-webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"chokidar": "^3.5.3",
4747
"copy-webpack-plugin": "^11.0.0",
4848
"css-loader": "^6.8.1",
49-
"esbuild-loader": "~3.1.0",
49+
"esbuild-loader": "~4.0.2",
5050
"express": "^4.18.2",
5151
"html-webpack-plugin": "^5.5.3",
5252
"mini-css-extract-plugin": "^2.7.6",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"cac": "^6.7.14",
4343
"chokidar": "^3.5.3",
4444
"envinfo": "^7.11.0",
45-
"esbuild": "~0.18.20"
45+
"esbuild": "~0.19.5"
4646
},
4747
"devDependencies": {
4848
"@types/envinfo": "^7.8.3"

0 commit comments

Comments
 (0)