Skip to content

Commit d7a6a21

Browse files
committed
fix(icon): 修复icon图标显示异常问题
1 parent 68c0781 commit d7a6a21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internals/cli/src/commands/build/build-ui.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const getVuePlugins = (vueVersion: string) => {
3333
}
3434
}
3535
}),
36-
vue2SvgPlugin({ svgoConfig: { plugins: ['prefixIds'] } })
36+
vue2SvgPlugin()
3737
]
3838
},
3939
'2.7': () => {
@@ -52,7 +52,7 @@ export const getVuePlugins = (vueVersion: string) => {
5252
}
5353
}),
5454
vue27JsxPlugin({ injectH: false }),
55-
vue2SvgPlugin({ svgoConfig: { plugins: ['prefixIds'] } })
55+
vue2SvgPlugin()
5656
]
5757
},
5858
'3': () => {
@@ -68,7 +68,7 @@ export const getVuePlugins = (vueVersion: string) => {
6868
}
6969
}),
7070
vue3JsxPlugin(),
71-
vue3SvgPlugin({ defaultImport: 'component', svgoConfig: { plugins: ['prefixIds'] } })
71+
vue3SvgPlugin()
7272
]
7373
}
7474
}
@@ -168,7 +168,7 @@ export const getBaseConfig = ({ vueVersion, dtsInclude, dts, buildTarget, isRunt
168168

169169
// 为主入口包添加readme和LICENSE
170170
if (filePath === 'vue') {
171-
;['README.md', 'README.zh-CN.md', 'LICENSE'].forEach((item) => {
171+
['README.md', 'README.zh-CN.md', 'LICENSE'].forEach((item) => {
172172
fs.copySync(
173173
pathFromWorkspaceRoot(item),
174174
path.resolve(pathFromPackages(''), `dist${vueVersion}/@opentiny/vue/${item}`)

0 commit comments

Comments
 (0)