We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b19154 + 326d625 commit 730f3c0Copy full SHA for 730f3c0
utils.js
@@ -50,7 +50,12 @@ module.exports.getLoaderNames = loaders =>
50
loaders && loaders.length
51
? loaders
52
.map(l => l.loader || l)
53
- .map(l => l.replace(/^.*\/node_modules\/([^\/]+).*$/, (_, m) => m))
+ .map(l =>
54
+ l.replace(
55
+ /^.*\/node_modules\/(@[a-z0-9][\w-.]+\/[a-z0-9][\w-.]*|[^\/]+).*$/,
56
+ (_, m) => m
57
+ )
58
59
.filter(l => !l.includes("speed-measure-webpack-plugin"))
60
: ["modules with no loaders"];
61
0 commit comments