细节优化
This commit is contained in:
parent
b63598af98
commit
008f76e440
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue