Skip to content

Commit

Permalink
Merge pull request #15202 from tmeasday/webpack-hot-middleware-lazy-c…
Browse files Browse the repository at this point in the history
…ompilation

Exclude `webpack-hot-middleware/client` from lazy compilation
  • Loading branch information
sokra committed Jan 21, 2022
2 parents 3014a3b + 9be408c commit f22a314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hmr/LazyCompilationPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class LazyCompilationPlugin {
)
return;
if (
/webpack[/\\]hot[/\\]|webpack-dev-server[/\\]client/.test(
/webpack[/\\]hot[/\\]|webpack-dev-server[/\\]client|webpack-hot-middleware[/\\]client/.test(
resolveData.request
) ||
!checkTest(this.test, originalModule)
Expand Down

0 comments on commit f22a314

Please sign in to comment.