build: 启用宏编译

This commit is contained in:
2023-07-20 14:41:16 +08:00
parent 30a7f03650
commit 9a3042d332
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
Button: typeof import('./../packages/button/index.vue')['default'] Button: typeof import('./../packages/button/index.vue')['default']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com * @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-15 13:22:04 * @Date: 2023-06-15 13:22:04
* @LastEditors: zhaojinfeng 121016171@qq.com * @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-06-21 11:32:48 * @LastEditTime: 2023-07-20 13:05:21
* @FilePath: \vue3\vite.config.ts * @FilePath: \vue3\vite.config.ts
* @Description: * @Description:
* *
@ -38,7 +38,7 @@ export default defineConfig({
}, },
}, },
plugins: [ plugins: [
vue(), vue({ reactivityTransform: true }),
vueJsx(), vueJsx(),
libCss({}), libCss({}),
AutoImport({ AutoImport({