Skip to content

Commit

Permalink
refactor: avoid keeping promise
Browse files Browse the repository at this point in the history
Co-authored-by: patak <matias.capeletto@gmail.com>
  • Loading branch information
bluwy and patak-dev committed Mar 20, 2023
1 parent f997882 commit dfdafd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -1174,6 +1174,9 @@ async function resolvePostcssConfig(
}

postcssConfigCache.set(config, result)
result.then((resolved) => {
postcssConfigCache.set(config, resolved)
})
return result
}

Expand Down

0 comments on commit dfdafd5

Please sign in to comment.