Skip to content

Commit

Permalink
🐛 Fix: unregister plugin delete pluginMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Feb 9, 2021
1 parent 9409dd6 commit 85228d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/PluginLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class PluginLoader implements IPluginLoader {
unregisterPlugin (name: string): void {
this.list = this.list.filter((item: string) => item !== name)
this.fullList.delete(name)
this.pluginMap.delete(name)
this.ctx.setCurrentPluginName(name)
this.ctx.helper.uploader.unregister(name)
this.ctx.helper.transformer.unregister(name)
Expand Down

0 comments on commit 85228d8

Please sign in to comment.