Skip to content

Commit

Permalink
fix(icons): correctly combine loaders (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish committed Aug 26, 2022
1 parent ae53bdf commit 0f7efcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-icons/src/core.ts
Expand Up @@ -120,9 +120,9 @@ export function createPresetIcons(lookupIconLoader: (options: IconsOptions) => P
}

export function combineLoaders(loaders: UniversalIconLoader[]) {
return <UniversalIconLoader>((...args) => {
return <UniversalIconLoader>(async (...args) => {
for (const loader of loaders) {
const result = loader(...args)
const result = await loader(...args)
if (result)
return result
}
Expand Down

0 comments on commit 0f7efcb

Please sign in to comment.