Exclude `webpack-hot-middleware/client` from lazy compilation
This commit is contained in:
parent
5239eb4c06
commit
d39ce25895
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue