Skip to content

Commit a798ae9

Browse files
committed
Fix "Missing loader" detection in Webpack 4.34.0+
1 parent d423c9e commit a798ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/friendly-errors/transformers/missing-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function isMissingLoaderError(e) {
1616
return false;
1717
}
1818

19-
if (!e.message.includes('You may need an appropriate loader')) {
19+
if (!/You may need an (appropriate|additional) loader/.test(e.message)) {
2020
return false;
2121
}
2222

0 commit comments

Comments
 (0)