diff --git a/yudao-ui-admin-vue3/package.json b/yudao-ui-admin-vue3/package.json index a02f90c9d..b6c1c184d 100644 --- a/yudao-ui-admin-vue3/package.json +++ b/yudao-ui-admin-vue3/package.json @@ -10,7 +10,7 @@ "ts:check": "vue-tsc --noEmit", "build:pro": "vite build --mode pro", "build:dev": "vite build --mode dev", - "build:test": "pnpm run ts:check && vite build --mode test", + "build:test": "npm run ts:check && vite build --mode test", "serve:pro": "vite preview --mode pro", "serve:dev": "vite preview --mode dev", "serve:test": "vite preview --mode test", @@ -100,7 +100,7 @@ "vite-plugin-style-import": "2.0.0", "vite-plugin-svg-icons": "^2.0.1", "vite-plugin-windicss": "^1.8.8", - "vue-tsc": "^0.40.13", + "vue-tsc": "^1.0.3", "windicss": "^3.5.6", "windicss-analysis": "^0.3.5" }, diff --git a/yudao-ui-admin-vue3/tsconfig.json b/yudao-ui-admin-vue3/tsconfig.json index d4a76c5b0..27d1dfdf5 100644 --- a/yudao-ui-admin-vue3/tsconfig.json +++ b/yudao-ui-admin-vue3/tsconfig.json @@ -30,7 +30,7 @@ "@types/intro.js", "@types/qrcode", "vite-plugin-svg-icons/client", - "unplugin-vue-define-options" + "unplugin-vue-macros/macros-global" ], "typeRoots": ["./node_modules/@types/", "./types"] }, diff --git a/yudao-ui-admin-vue3/vite.config.ts b/yudao-ui-admin-vue3/vite.config.ts index 9c91a9d61..83b03c0bc 100644 --- a/yudao-ui-admin-vue3/vite.config.ts +++ b/yudao-ui-admin-vue3/vite.config.ts @@ -9,9 +9,9 @@ import VueI18n from '@intlify/vite-plugin-vue-i18n' import { createStyleImportPlugin, ElementPlusResolve } from 'vite-plugin-style-import' import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' import PurgeIcons from 'vite-plugin-purge-icons' -import DefineOptions from 'unplugin-vue-define-options/vite' import { createHtmlPlugin } from 'vite-plugin-html' import viteCompression from 'vite-plugin-compression' +import VueMarcos from 'unplugin-vue-macros/vite' // 当前执行node命令时文件夹的地址(工作目录) const root = process.cwd() @@ -80,7 +80,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { svgoOptions: true }), PurgeIcons(), - DefineOptions(), + VueMarcos(), viteCompression({ verbose: true, // 是否在控制台输出压缩结果 disable: true, // 是否禁用