-
Notifications
You must be signed in to change notification settings - Fork 45
Entry as an object-of-arrays-of-strings does not work #95
Comments
@shellscape I wasn't setting that option, no. But I've just tried it, and it doesn't seem to make a difference unfortunately. I'm using I've also updated the example repo with |
Welp, beyond that, happy to review a PR that resolves this condition. |
I've been doing some digging on this issue. I found that HMR does seem to be working, but for the first endpoint only. I can "fix" the issue, by hacking in these two fixes:
But based on the comments in #96, I understand that this would introduce a regression. Am I right in assuming that:
|
/cc @shellscape Maybe you'll all think about not merge PRs without tests in the future? Now Also, you ignore other people's opinions and discussions about solving problems and many features, this violates code of coduct. If you continue to communicate in this style, I'll file a complaint. |
+1 on not getting HMR on anything but the first listed entry, also discussed on webpack-serve: webpack-contrib/webpack-serve#119 (comment) but I guess this is the correct place if @ezzatron verified the allEntries setting being passed correctly. |
Expected Behavior
When entry is configured as described in the README:
HMR should detect and handle updates correctly.
Actual Behavior
HMR does not function as expected. Updates are shown in the console, but always show "No Modules Updated". Sample console log:
In addition, this seems to prevent fallback to full-page reload from working. A manual reload is required to pick up the changes.
Code
Webpack config: https://gist.github.com/ezzatron/bb4f0609e513d75fd98d070b99fe83c2#file-webpack-config-js
How Do We Reproduce?
webpack-hot-client-issue
branchmake run
src/style.scss
, change the color valueI have since "fixed" the issue on the master branch of that same repo, but it required me to use a simple array-of-strings entry configuration, which has flow-on effects for my chunk splitting configuration, which was using the entrypoint name as a way to differentiate chunks.
The text was updated successfully, but these errors were encountered: