Skip to content

Commit

Permalink
fix(lib/plugin): change context and options merge strategy
Browse files Browse the repository at this point in the history
Fixes #997
  • Loading branch information
xllily committed May 24, 2023
1 parent 22bfb01 commit 087f332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin/Plugin.js
Expand Up @@ -40,7 +40,7 @@ class Plugin {
afterRelease() {}

getContext(path) {
const context = Object.assign({}, this.options, this.context);
const context = Object.assign({}, this.context, this.options);
return path ? _.get(context, path) : context;
}

Expand Down

0 comments on commit 087f332

Please sign in to comment.