Skip to content

Commit

Permalink
feat: upgrade to vite 5 and esbuild 0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Nov 16, 2023
1 parent 518fd7d commit e1e9ec3
Show file tree
Hide file tree
Showing 9 changed files with 380 additions and 154 deletions.
2 changes: 1 addition & 1 deletion ecosystem/plugin-medium-zoom/package.json
Expand Up @@ -40,7 +40,7 @@
"@vuepress/client": "workspace:*",
"@vuepress/core": "workspace:*",
"@vuepress/utils": "workspace:*",
"medium-zoom": "^1.0.8",
"medium-zoom": "^1.1.0",
"vue": "^3.3.8"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -38,8 +38,8 @@
},
"prettier": "prettier-config-vuepress",
"devDependencies": {
"@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@types/node": "^20.9.0",
"@types/webpack-env": "^1.18.4",
"@vitest/coverage-istanbul": "^0.34.6",
Expand All @@ -58,7 +58,7 @@
"tsconfig-vuepress": "^4.5.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vite": "~4.5.0",
"vite": "~5.0.0",
"vitest": "^0.34.6"
},
"packageManager": "pnpm@8.10.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/bundler-vite/package.json
Expand Up @@ -33,7 +33,7 @@
"clean": "rimraf dist"
},
"dependencies": {
"@vitejs/plugin-vue": "^4.4.1",
"@vitejs/plugin-vue": "^4.5.0",
"@vuepress/client": "workspace:*",
"@vuepress/core": "workspace:*",
"@vuepress/shared": "workspace:*",
Expand All @@ -42,8 +42,8 @@
"connect-history-api-fallback": "^2.0.0",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"rollup": "^3.29.4",
"vite": "~4.5.0",
"rollup": "^4.4.1",
"vite": "~5.0.0",
"vue": "^3.3.8",
"vue-router": "^4.2.5"
},
Expand Down
77 changes: 0 additions & 77 deletions packages/bundler-vite/src/plugins/constantsReplacementPlugin.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/bundler-vite/src/plugins/index.ts
@@ -1,3 +1,2 @@
export * from './constantsReplacementPlugin.js'
export * from './mainPlugin.js'
export * from './userConfigPlugin.js'
7 changes: 1 addition & 6 deletions packages/bundler-vite/src/resolveViteConfig.ts
Expand Up @@ -2,11 +2,7 @@ import { default as vuePlugin } from '@vitejs/plugin-vue'
import type { App } from '@vuepress/core'
import type { InlineConfig } from 'vite'
import { mergeConfig } from 'vite'
import {
constantsReplacementPlugin,
mainPlugin,
userConfigPlugin,
} from './plugins/index.js'
import { mainPlugin, userConfigPlugin } from './plugins/index.js'
import type { ViteBundlerOptions } from './types.js'

export const resolveViteConfig = async ({
Expand All @@ -30,7 +26,6 @@ export const resolveViteConfig = async ({
},
plugins: [
vuePlugin(options.vuePluginOptions),
constantsReplacementPlugin(app),
mainPlugin({ app, isBuild, isServer }),
userConfigPlugin(options),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-webpack/package.json
Expand Up @@ -46,7 +46,7 @@
"chokidar": "^3.5.3",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"esbuild-loader": "~3.1.0",
"esbuild-loader": "~4.0.2",
"express": "^4.18.2",
"html-webpack-plugin": "^5.5.3",
"mini-css-extract-plugin": "^2.7.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Expand Up @@ -42,7 +42,7 @@
"cac": "^6.7.14",
"chokidar": "^3.5.3",
"envinfo": "^7.11.0",
"esbuild": "~0.18.20"
"esbuild": "~0.19.5"
},
"devDependencies": {
"@types/envinfo": "^7.8.3"
Expand Down

0 comments on commit e1e9ec3

Please sign in to comment.