Skip to content

Commit d6078a3

Browse files
committed
fix: inspect --plugins should log plugin names from webpack-merge
1 parent d14d4e6 commit d6078a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (api, options) => {
2424
} else if (args.rules) {
2525
res = config.module.rules.map(r => r.__ruleNames[0])
2626
} else if (args.plugins) {
27-
res = config.plugins.map(p => p.__pluginName)
27+
res = config.plugins.map(p => p.__pluginName || p.constructor.name)
2828
} else if (paths.length > 1) {
2929
res = {}
3030
paths.forEach(path => {

0 commit comments

Comments
 (0)