Skip to content

Commit

Permalink
fix: cannot resolve local functional plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 23, 2018
1 parent a31f481 commit e8a35be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@vuepress/core/lib/plugin-api/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ exports.flattenPlugin = function (
}

// respect name in local plugin config
name = fromDep && name || config.name
if (!fromDep && config.name) {
name = config.name
}

return Object.assign({}, config, {
name,
shortcut: fromDep ? shortcut : null,
Expand Down

0 comments on commit e8a35be

Please sign in to comment.