Skip to content

Commit

Permalink
Exclude webpack-hot-middleware/client from lazy compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jan 18, 2022
1 parent 5239eb4 commit 94fcfa0
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 @@ -359,7 +359,7 @@ class LazyCompilationPlugin {
dep.type === "import() context element")) ||
(this.entries && dep.type === "entry")
) &&
!/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 94fcfa0

Please sign in to comment.