File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { iconLibraryName, libraryName } from '../config'
33import { genIconPresets , resolvePath , toArray } from '../utils'
44import type { ModuleOptions , PresetImport } from '../types'
55
6- function _resolveImports ( ... imports : PresetImport [ ] ) {
6+ function _resolveImports ( imports : Set < PresetImport > ) {
77 imports . forEach ( async ( [ name , path ] ) => {
88 addImportsSources ( {
99 from : await resolvePath ( `${ libraryName } /${ path } ` ) ,
@@ -18,7 +18,7 @@ export async function resolveImports (config: ModuleOptions) {
1818 const allImports = new Set ( imports )
1919 const allIcons = new Set ( icons )
2020
21- _resolveImports ( ... allImports )
21+ _resolveImports ( allImports )
2222
2323 addImportsSources ( {
2424 from : await resolvePath ( iconLibraryName ) ,
@@ -28,6 +28,7 @@ export async function resolveImports (config: ModuleOptions) {
2828
2929export function resolveBaseImports ( config : ModuleOptions ) {
3030 const { baseImports } = config
31+ const allBaseImports = new Set ( baseImports )
3132
32- _resolveImports ( ... baseImports )
33+ _resolveImports ( allBaseImports )
3334}
You can’t perform that action at this time.
0 commit comments