Skip to content

Commit 9843be5

Browse files
marcofugaroTimer
authored andcommitted
Update the thread loader test in errors (#4420)
1 parent 3aaddef commit 9843be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/formatWebpackMessages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function formatMessage(message, isError) {
4646
if (threadLoaderIndex !== -1) {
4747
return;
4848
}
49-
if (line.indexOf('from thread-loader (worker') !== -1) {
49+
if (/thread.loader/i.test(line)) {
5050
threadLoaderIndex = index;
5151
}
5252
});

0 commit comments

Comments
 (0)