From 3df33a97c492cce151abaa86be2b1f0a4463e7e2 Mon Sep 17 00:00:00 2001 From: hyj1991 Date: Tue, 5 Jul 2022 10:43:48 +0800 Subject: [PATCH] fix: sorted plugin list should not be reversed (#123) --- src/scanner/scan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner/scan.ts b/src/scanner/scan.ts index 21645d8..762c5df 100644 --- a/src/scanner/scan.ts +++ b/src/scanner/scan.ts @@ -105,7 +105,7 @@ export class Scanner { } const { plugin } = this.configHandle.getMergedConfig(env); const pluginSortedList = await PluginFactory.createFromConfig(plugin || {}); - for (const plugin of pluginSortedList.reverse()) { + for (const plugin of pluginSortedList) { if (!plugin.enable) continue; this.setPluginMeta(plugin); await this.walk(