From a617ab114ba4f30a9721d2476b534a25398d699d Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 3 Feb 2018 12:08:01 -0800 Subject: [PATCH] fix: fixed already loaded flag --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 5be02549..fdad92a0 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -103,7 +103,7 @@ export class Plugin implements IPlugin { const root = findRoot(opts.name, opts.root) if (!root) throw new Error(`could not find package.json with ${inspect(opts)}`) if (Plugin.loadedPlugins[root]) { - this.alreadyLoaded = true + Plugin.loadedPlugins[root].alreadyLoaded = true return Plugin.loadedPlugins[root] } Plugin.loadedPlugins[root] = this