Skip to content

Commit

Permalink
fix: regression in applyPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 29, 2019
1 parent 6118d78 commit 9d01d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/saber/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class Saber {
}

applyPlugin(plugin, options, pluginLocation) {
plugin.apply(this)
plugin.apply(this, options)
if (!plugin.name.startsWith('builtin:')) {
log.verbose(
() =>
Expand All @@ -225,7 +225,7 @@ class Saber {

const plugin = require(location)
plugin.location = location
plugin.options = p.option
plugin.options = p.options

return plugin
})
Expand Down

0 comments on commit 9d01d65

Please sign in to comment.