Commit 078ddbc
committed
bug #523 Ignore hot-update files in the SharedEntryConcatPlugin (Lyrkan, weaverryan)
This PR was merged into the master branch.
Discussion
----------
Ignore hot-update files in the SharedEntryConcatPlugin
This PR fixes #493.
When using `dev-server --hot` an additional `.hot-update.js` file can be [added to the list of files associated to a chunk](https://github.com/webpack/webpack/blob/7076c05353bae6d788247cfcaa94704f34cca292/lib/HotModuleReplacementPlugin.js#L287). If that list contains another JS file the current version of Encore throws an Error that causes the compilation to fail.
The good news is that the `.hot-update.js` file is also [added to the `additionalChunkAssets`](https://github.com/webpack/webpack/blob/7076c05353bae6d788247cfcaa94704f34cca292/lib/HotModuleReplacementPlugin.js#L284) property of the `compilation` object. This allows us to ignore it and only keep the JS file that we need.
Commits
-------
5da8b70 clarifying comment
39a3c6e Ignore hot-update files in the SharedEntryConcatPluginFile tree
1 file changed
+3
-1
lines changed- lib/webpack
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments