Skip to content

Commit 88a850d

Browse files
committed
chore: test info
1 parent 08ba5e6 commit 88a850d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

playground/nuxt.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ export default defineNuxtConfig({
22
modules: ['../src/module'],
33

44
antd: {
5-
extractStyle: true
5+
extractStyle: true,
66
},
77

88
imports:{
99
autoImport: true
1010
},
1111

1212
compatibilityDate: '2024-09-27'
13-
})
13+
})

src/core/components.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ export const resolveComponents = (config:Options) =>{
2020
})
2121
}
2222
})
23+
if (icons === false){
24+
return
25+
}
2326

24-
const allIcons = icons === false ? [] : icons;
25-
allIcons.forEach(icon=>{
27+
icons.forEach(icon=>{
2628
if (typeof icon === 'string'){
2729
addComponent({
2830
export: icon,

0 commit comments

Comments
 (0)