Merge pull request #15202 from tmeasday/webpack-hot-middleware-lazy-compilation

Exclude `webpack-hot-middleware/client` from lazy compilation
This commit is contained in:
Tobias Koppers 2022-01-21 18:32:38 +01:00 committed by GitHub
commit f22a31425f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)