Skip to content

Commit

Permalink
build(deps): unplugin-vue-define-options替换为unplugin-vue-macros
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Sep 14, 2022
1 parent 3d03d6d commit 22c9025
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/plugins/unplugin.ts
@@ -1,4 +1,4 @@
import DefineOptions from 'unplugin-vue-define-options/vite';
import VueMacros from 'unplugin-vue-macros/vite';
import Icons from 'unplugin-icons/vite';
import IconsResolver from 'unplugin-icons/resolver';
import Components from 'unplugin-vue-components/vite';
Expand All @@ -12,7 +12,7 @@ const srcPath = getSrcPath();
const customIconPath = `${srcPath}/assets/svg`;

export default [
DefineOptions(),
VueMacros(),
Icons({
compiler: 'vue3',
customCollections: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -110,7 +110,7 @@
"typescript": "4.8.3",
"unplugin-icons": "^0.14.9",
"unplugin-vue-components": "0.22.7",
"unplugin-vue-define-options": "^0.11.2",
"unplugin-vue-macros": "^0.11.2",
"utility-types": "^3.10.0",
"vite": "^3.1.0",
"vite-plugin-compression": "^0.5.1",
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Expand Up @@ -17,13 +17,7 @@
"~/*": ["./*"],
"@/*": ["./src/*"]
},
"types": [
"vite/client",
"node",
"unplugin-icons/types/vue",
"naive-ui/volar",
"unplugin-vue-define-options/macros-global"
]
"types": ["vite/client", "node", "unplugin-icons/types/vue", "naive-ui/volar", "unplugin-vue-macros/macros-global"]
},
"exclude": ["node_modules", "dist"]
}

0 comments on commit 22c9025

Please sign in to comment.