build: 📦 升级 vite 7 以及兼容性调整

This commit is contained in:
Ray.Hao
2025-08-04 11:31:02 +08:00
parent 7863078912
commit 879a3b6404
2 changed files with 26 additions and 27 deletions

View File

@@ -2,9 +2,9 @@
<img alt="vue3-element-admin" width="80" height="80" src="./src/assets/logo.png"> <img alt="vue3-element-admin" width="80" height="80" src="./src/assets/logo.png">
<h1>vue3-element-admin</h1> <h1>vue3-element-admin</h1>
<img src="https://img.shields.io/badge/Vue-3.5.17-brightgreen.svg"/> <img src="https://img.shields.io/badge/Vue-3.5.18-brightgreen.svg"/>
<img src="https://img.shields.io/badge/Vite-6.3.5-green.svg"/> <img src="https://img.shields.io/badge/Vite-7.0.6-green.svg"/>
<img src="https://img.shields.io/badge/Element Plus-2.10.3-blue.svg"/> <img src="https://img.shields.io/badge/Element Plus-2.10.5-blue.svg"/>
<img src="https://img.shields.io/badge/license-MIT-green.svg"/> <img src="https://img.shields.io/badge/license-MIT-green.svg"/>
<a href="https://gitee.com/youlaiorg" target="_blank"> <a href="https://gitee.com/youlaiorg" target="_blank">
<img src="https://img.shields.io/badge/Author-有来开源组织-orange.svg"/> <img src="https://img.shields.io/badge/Author-有来开源组织-orange.svg"/>
@@ -90,11 +90,10 @@
- **环境准备** - **环境准备**
| 环境类型 | 名称 | | 环境类型 | 名称 | 备注 |
|----------------|-----------------------------| |----------------|---------------|----------- |
| **开发工具** | [Visual Studio Code](https://code.visualstudio.com/Download) | | **开发工具** | [Visual Studio Code](https://code.visualstudio.com/Download) |
| **运行环境** | Node 18 + (推荐[22.9.0](https://npmmirror.com/mirrors/node/v22.9.0/)) | | **运行环境** | ^20.19.0 || >=22.12.0 | 20.19.0+ 或 22.12.0 及以上版本 |
> ⚠️ 注意Node.js 20.6.0版本存在兼容性问题,请勿使用
- **快速开始** - **快速开始**

View File

@@ -49,15 +49,15 @@
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@stomp/stompjs": "^7.1.1", "@stomp/stompjs": "^7.1.1",
"@vueuse/core": "^12.8.2", "@vueuse/core": "^12.8.2",
"@wangeditor-next/editor": "^5.6.36", "@wangeditor-next/editor": "^5.6.42",
"@wangeditor-next/editor-for-vue": "^5.1.14", "@wangeditor-next/editor-for-vue": "^5.1.14",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"axios": "^1.10.0", "axios": "^1.11.0",
"codemirror": "^5.65.19", "codemirror": "^5.65.19",
"codemirror-editor-vue3": "^2.8.0", "codemirror-editor-vue3": "^2.8.0",
"default-passive-events": "^2.0.0", "default-passive-events": "^2.0.0",
"echarts": "^5.6.0", "echarts": "^5.6.0",
"element-plus": "^2.10.4", "element-plus": "^2.10.5",
"exceljs": "^4.4.0", "exceljs": "^4.4.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
@@ -66,34 +66,34 @@
"pinia": "^3.0.3", "pinia": "^3.0.3",
"qs": "^6.14.0", "qs": "^6.14.0",
"sortablejs": "^1.15.6", "sortablejs": "^1.15.6",
"vue": "^3.5.17", "vue": "^3.5.18",
"vue-draggable-plus": "^0.6.0", "vue-draggable-plus": "^0.6.0",
"vue-i18n": "^11.1.9", "vue-i18n": "^11.1.11",
"vue-router": "^4.5.1", "vue-router": "^4.5.1",
"vxe-table": "~4.6.25" "vxe-table": "~4.6.25"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.8.1", "@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1", "@commitlint/config-conventional": "^19.8.1",
"@eslint/js": "^9.31.0", "@eslint/js": "^9.32.0",
"@iconify/utils": "^2.3.0", "@iconify/utils": "^2.3.0",
"@types/codemirror": "^5.60.16", "@types/codemirror": "^5.60.16",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",
"@types/node": "^22.16.3", "@types/node": "^22.17.0",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3", "@types/path-browserify": "^1.0.3",
"@types/qs": "^6.14.0", "@types/qs": "^6.14.0",
"@types/sortablejs": "^1.15.8", "@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^8.36.0", "@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.36.0", "@typescript-eslint/parser": "^8.38.0",
"@vitejs/plugin-vue": "^5.2.4", "@vitejs/plugin-vue": "^6.0.1",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"commitizen": "^4.3.1", "commitizen": "^4.3.1",
"cz-git": "^1.12.0", "cz-git": "^1.12.0",
"eslint": "^9.31.0", "eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.5", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.1", "eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-vue": "^10.3.0", "eslint-plugin-vue": "^10.4.0",
"globals": "^15.15.0", "globals": "^15.15.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^15.5.2", "lint-staged": "^15.5.2",
@@ -102,7 +102,7 @@
"postcss-scss": "^4.0.9", "postcss-scss": "^4.0.9",
"prettier": "^3.6.2", "prettier": "^3.6.2",
"sass": "^1.89.2", "sass": "^1.89.2",
"stylelint": "^16.21.1", "stylelint": "^16.23.0",
"stylelint-config-html": "^1.1.0", "stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^6.1.0", "stylelint-config-recess-order": "^6.1.0",
"stylelint-config-recommended": "^15.0.0", "stylelint-config-recommended": "^15.0.0",
@@ -110,18 +110,18 @@
"stylelint-config-recommended-vue": "^1.6.1", "stylelint-config-recommended-vue": "^1.6.1",
"stylelint-prettier": "^5.0.3", "stylelint-prettier": "^5.0.3",
"terser": "^5.43.1", "terser": "^5.43.1",
"typescript": "^5.8.3", "typescript": "^5.9.2",
"typescript-eslint": "^8.36.0", "typescript-eslint": "^8.38.0",
"unocss": "65.4.3", "unocss": "^66.4.0",
"unplugin-auto-import": "^19.3.0", "unplugin-auto-import": "^19.3.0",
"unplugin-vue-components": "^28.8.0", "unplugin-vue-components": "^28.8.0",
"vite": "^6.3.5", "vite": "^7.0.6",
"vite-plugin-mock-dev-server": "^1.9.1", "vite-plugin-mock-dev-server": "^1.9.1",
"vue-eslint-parser": "^10.2.0", "vue-eslint-parser": "^10.2.0",
"vue-tsc": "^2.2.12" "vue-tsc": "^2.2.12"
}, },
"engines": { "engines": {
"node": ">=18.0.0" "node": "^20.19.0 || >=22.12.0"
}, },
"repository": "https://gitee.com/youlaiorg/vue3-element-admin.git", "repository": "https://gitee.com/youlaiorg/vue3-element-admin.git",
"author": "有来开源组织", "author": "有来开源组织",