升级依赖

This commit is contained in:
xh
2025-06-19 17:27:18 +08:00
parent 3d138dea15
commit 23d15e616d
2 changed files with 106 additions and 47 deletions

View File

@@ -16,57 +16,60 @@
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@highlightjs/vue-plugin": "^2.1.0",
"@logicflow/core": "^2.0.9",
"@logicflow/extension": "^2.0.13",
"@vueuse/core": "^12.0.0",
"@logicflow/core": "^2.0.16",
"@logicflow/extension": "^2.0.21",
"@vueuse/core": "^13.3.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"axios": "^1.7.8",
"axios": "^1.8.4",
"crypto-js": "^4.2.0",
"css-color-function": "^1.3.3",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"element-plus": "^2.9.0",
"highlight.js": "^11.10.0",
"echarts": "^5.6.0",
"element-plus": "^2.10.2",
"highlight.js": "^11.11.1",
"lodash-es": "^4.17.21",
"nprogress": "^0.2.0",
"pinia": "^2.2.8",
"pinia": "^3.0.3",
"query-string": "^9.1.1",
"vform3-builds": "^3.0.10",
"vue": "^3.5.13",
"vue": "^3.5.16",
"vue-clipboard3": "^2.0.0",
"vue-echarts": "^7.0.3",
"vue-router": "^4.4.5",
"vue-router": "^4.5.1",
"vue3-video-play": "^1.3.2",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.3",
"@rushstack/eslint-patch": "^1.11.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.14.2",
"@types/node": "^22.14.1",
"@types/nprogress": "^0.2.3",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vitejs/plugin-vue": "^5.2.4",
"@vitejs/plugin-vue-jsx": "^4.2.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.7.0",
"autoprefixer": "^10.4.20",
"autoprefixer": "^10.4.21",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.27.0",
"execa": "^9.3.0",
"fs-extra": "^11.2.0",
"postcss": "^8.4.49",
"prettier": "^3.4.1",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.81.1",
"execa": "^9.5.2",
"fs-extra": "^11.3.0",
"postcss": "^8.5.3",
"prettier": "^3.5.3",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "^1.87.0",
"tailwindcss": "^3.4.15",
"typescript": "~5.7.2",
"unplugin-auto-import": "^0.18.6",
"unplugin-vue-components": "^0.27.5",
"vite": "^6.0.2",
"typescript": "~5.8.3",
"unplugin-auto-import": "^19.3.0",
"unplugin-vue-components": "^28.7.0",
"vite": "npm:rolldown-vite@latest",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-style-import": "^2.0.0",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^2.1.10"
"vue-tsc": "^2.2.10"
},
"overrides": {
"vite": "npm:rolldown-vite@latest"
}
}

View File

@@ -19,6 +19,9 @@ export default ({ mode }) => {
console.log(env)
return defineConfig({
experimental: {
enableNativePlugin: true // 启用 Rust 原生插件(如 alias/resolve
},
optimizeDeps: {
// 依赖预构建,避免开发刷新
include: ['@wangeditor/editor-for-vue', 'vuedraggable', 'vue-echarts', 'crypto-js']
@@ -30,19 +33,72 @@ export default ({ mode }) => {
rollupOptions: {
external: ['XErr'],
output: {
manualChunks: {
vue: ['vue'],
'vue-router': ['vue-router'],
pinia: ['pinia'],
axios: ['axios'],
dayjs: ['dayjs'],
// echarts: ['echarts'],
// 'highlight.js': ['highlight.js'],
'element-plus': ['element-plus']
advancedChunks: {
groups: [
{
name: 'vue',
test: /node_modules\/vue\//
},
{
name: 'vue-router',
test:/node_modules\/vue-router/
},
{
name: 'element-plus',
test: /node_modules\/element-plus/
},
{
name: 'axios',
test: /node_modules\/axios/
},
{
name: 'dayjs',
test: /node_modules\/dayjs/
},
// vuedraggable
{
name: 'vuedraggable',
test: /node_modules\/vuedraggable/
},
// vue3-video-play
{
name: 'vue3-video-play',
test: /node_modules\/vue3-video-play/
},
// echarts
{
name: 'echarts',
test: /node_modules\/echarts/
},
// highlight.js
{
name: 'highlight.js',
test: /node_modules\/highlight\.js/
},
// lodash-es
{
name: 'lodash-es',
test: /node_modules\/lodash-es/
},
// @wangeditor/editor
{
name: '@wangeditor/editor',
test: /node_modules\/@wangeditor/
},
// 'lodash-es': ['lodash-es'],
// vuedraggable: ['vuedraggable'],
// 'vform3-builds': ['vform3-builds']
],
// vue: ['vue'],
// 'vue-router': ['vue-router'],
// pinia: ['pinia'],
// axios: ['axios'],
// dayjs: ['dayjs'],
// // echarts: ['echarts'],
// // 'highlight.js': ['highlight.js'],
// 'element-plus': ['element-plus']
// // 'lodash-es': ['lodash-es'],
// // vuedraggable: ['vuedraggable'],
// // 'vform3-builds': ['vform3-builds']
}
}
}
@@ -62,7 +118,7 @@ export default ({ mode }) => {
},
plugins: [
vue(),
vueJsx(),
// vueJsx(),
// AutoImport({
// imports: ['vue', 'vue-router'],
// // resolvers: [ElementPlusResolver()],
@@ -81,20 +137,20 @@ export default ({ mode }) => {
// 配置路劲在你的src里的svg存放文件
iconDirs: [fileURLToPath(new URL('./src/assets/icons', import.meta.url))],
symbolId: 'local-icon-[dir]-[name]'
}),
})
// viteCompression({
// algorithm: 'gzip'
// })
// viteCompression({
// algorithm: 'brotliCompress'
// })
visualizer({
gzipSize: false,
brotliSize: false,
emitFile: false,
filename: 'test.html', //分析图生成的文件名
open: true
})
// visualizer({
// gzipSize: false,
// brotliSize: false,
// emitFile: false,
// filename: 'test.html', //分析图生成的文件名
// open: true
// })
],
resolve: {
alias: {