细节优化

This commit is contained in:
🌌 2024-03-11 11:55:17 +08:00
parent b63598af98
commit 008f76e440
1 changed files with 3 additions and 4 deletions

View File

@ -89,10 +89,9 @@ class PluginsLoader {
this.pluginCount = 0
const packageErr = []
const pluginArray = []
for (const file of files)
pluginArray.push(this.importPlugin(file, packageErr))
await Promise.allSettled(pluginArray)
await Promise.allSettled(files.map(file =>
this.importPlugin(file, packageErr)
))
this.packageTips(packageErr)
this.creatTask()