Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: fixed already loaded flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent f9412bb commit a617ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a617ab1

Please sign in to comment.