File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import vue from "@vitejs/plugin-vue"
55import vueJsx from "@vitejs/plugin-vue-jsx"
66import UnoCSS from "unocss/vite"
77import AutoImport from "unplugin-auto-import/vite"
8- import UnpluginSvgComponent from "unplugin-svg-component/vite"
8+ import SvgComponent from "unplugin-svg-component/vite"
99import { ElementPlusResolver } from "unplugin-vue-components/resolvers"
1010import Components from "unplugin-vue-components/vite"
1111import { defineConfig , loadEnv } from "vite"
@@ -91,10 +91,10 @@ export default defineConfig(({ mode }) => {
9191 vue ( ) ,
9292 // 支持 JSX、TSX 语法
9393 vueJsx ( ) ,
94- // 将 SVG 文件转化为 Vue 组件
94+ // 支持将 SVG 文件导入为 Vue 组件
9595 svgLoader ( { defaultImport : "url" } ) ,
9696 // 自动生成 SvgIcon 组件和 SVG 雪碧图
97- UnpluginSvgComponent ( {
97+ SvgComponent ( {
9898 iconDir : [ resolve ( __dirname , "src/common/assets/icons" ) ] ,
9999 preserveColor : resolve ( __dirname , "src/common/assets/icons/preserve-color" ) ,
100100 dts : true ,
You can’t perform that action at this time.
0 commit comments