Skip to content

Commit e8a35be

Browse files
committed
fix: cannot resolve local functional plugin name
1 parent a31f481 commit e8a35be

File tree

1 file changed

+4
-1
lines changed
  • packages/@vuepress/core/lib/plugin-api

1 file changed

+4
-1
lines changed

packages/@vuepress/core/lib/plugin-api/util.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ exports.flattenPlugin = function (
4646
}
4747

4848
// respect name in local plugin config
49-
name = fromDep && name || config.name
49+
if (!fromDep && config.name) {
50+
name = config.name
51+
}
52+
5053
return Object.assign({}, config, {
5154
name,
5255
shortcut: fromDep ? shortcut : null,

0 commit comments

Comments
 (0)