Skip to content

Commit 69a4fb3

Browse files
haoqunjiangyyx990803
authored andcommitted
fix: inspect --plugins should log plugin names from webpack-merge (vuejs#2201)
1 parent 7fd3443 commit 69a4fb3

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)