refactor(build): 移除 setup-extend 插件并更新依赖项
- 移除 createSetupExtend 插件及其相关配置 - 更新 Vue 版本从 3.5.13 到 3.5.25 - 更新 Element Plus 版本从 2.12.0 到 2.14.1 - 添加 @vue/shared 依赖 - 移除 @vue/compiler-sfc 开发依赖 - 移除 unplugin-vue-setup-extend-plus 依赖 - 更新 @babel 相关依赖版本 - 移除 @esbuild 相关可选依赖 - 更新 chokidar 版本从 3.6.0 到 5.0.0 - 移除部分已废弃的依赖项
This commit is contained in:
1233
openhis-ui-vue3/package-lock.json
generated
1233
openhis-ui-vue3/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@element-plus/icons-vue": "^2.3.2",
|
||||
"@vue/shared": "^3.5.25",
|
||||
"@vueup/vue-quill": "1.2.0",
|
||||
"@vueuse/core": "10.6.1",
|
||||
"axios": "0.27.2",
|
||||
@@ -37,7 +38,7 @@
|
||||
"decimal.js": "^10.5.0",
|
||||
"echarts": "^5.4.3",
|
||||
"element-china-area-data": "^6.1.0",
|
||||
"element-plus": "^2.12.0",
|
||||
"element-plus": "^2.14.1",
|
||||
"file-saver": "^2.0.5",
|
||||
"fuse.js": "^7.0.0",
|
||||
"html2pdf.js": "^0.10.3",
|
||||
@@ -59,7 +60,7 @@
|
||||
"segmentit": "^2.0.3",
|
||||
"sortablejs": "^1.15.6",
|
||||
"v-region": "^3.3.0",
|
||||
"vue": "^3.5.13",
|
||||
"vue": "^3.5.25",
|
||||
"vue-area-linkage": "^5.1.0",
|
||||
"vue-cropper": "^1.1.1",
|
||||
"vue-plugin-hiprint": "^0.0.19",
|
||||
@@ -69,7 +70,6 @@
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@types/node": "^25.0.1",
|
||||
"@vitejs/plugin-vue": "4.5.0",
|
||||
"@vue/compiler-sfc": "3.3.9",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-import-resolver-alias": "^1.1.2",
|
||||
@@ -79,10 +79,9 @@
|
||||
"happy-dom": "^20.8.3",
|
||||
"jsdom": "^28.1.0",
|
||||
"pg": "^8.18.0",
|
||||
"sass": "1.69.5",
|
||||
"sass": "^1.100.0",
|
||||
"typescript": "^5.9.3",
|
||||
"unplugin-auto-import": "0.17.1",
|
||||
"unplugin-vue-setup-extend-plus": "1.0.0",
|
||||
"vite": "5.0.4",
|
||||
"vite-plugin-compression": "0.5.1",
|
||||
"vite-plugin-svg-icons": "2.0.1",
|
||||
@@ -90,4 +89,4 @@
|
||||
"vitest": "^4.0.18",
|
||||
"vue-tsc": "^3.1.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,36 +3,11 @@ import vue from '@vitejs/plugin-vue'
|
||||
import createAutoImport from './auto-import'
|
||||
import createSvgIcon from './svg-icon'
|
||||
import createCompression from './compression'
|
||||
import createSetupExtend from './setup-extend'
|
||||
|
||||
export default function createVitePlugins(viteEnv, isBuild = false) {
|
||||
const vitePlugins = [vue()]
|
||||
vitePlugins.push(createAutoImport())
|
||||
vitePlugins.push(createSetupExtend())
|
||||
vitePlugins.push(createSvgIcon(isBuild))
|
||||
// 住院代码影响打包 打包时暂时替换为空文件
|
||||
// 新增排除住院管理模块的插件
|
||||
// vitePlugins.push({
|
||||
// name: 'exclude-in-hospital-management',
|
||||
// enforce: 'pre',
|
||||
// load(id) {
|
||||
// const normalizedPath = id.replace(/\\/g, '/')
|
||||
// if (normalizedPath.includes('/src/views/inHospitalManagement/')
|
||||
// || normalizedPath.includes('/src/views/inpatientDoctor/')
|
||||
// || normalizedPath.includes('/src/views/inpatientNurse/')) {
|
||||
// return {
|
||||
// code: `
|
||||
// <template>
|
||||
// </template>
|
||||
// <script>
|
||||
// </script>
|
||||
// `,
|
||||
// map: null
|
||||
// }
|
||||
// }
|
||||
// return null
|
||||
// }
|
||||
// })
|
||||
isBuild && vitePlugins.push(...createCompression(viteEnv))
|
||||
return vitePlugins
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user