diff --git a/src/core/unplugin.ts b/src/core/unplugin.ts index edcd57cb..d7acdc20 100644 --- a/src/core/unplugin.ts +++ b/src/core/unplugin.ts @@ -16,10 +16,8 @@ export default createUnplugin((options) => { return ctx.transform(code, id) }, async buildStart() { - await Promise.all([ - ctx.scanDirs(), - ctx.updateCacheImports(), - ]) + await ctx.scanDirs() + await ctx.updateCacheImports() await ctx.writeConfigFiles() }, async buildEnd() {