-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hmr stopped working after webpack refactor in v1.1.0 #1147
Comments
@3cp On which skeleton you tried the HMR. I suspect that the problem might also exist even when CLI is not used. I will try to replicate the issue with the setup, you are facing problem with, without CLI. I did a quick check and saw that the skeletons are not using the HotModuleReplacementPlugin from webpack. I used that with the navigation skeleton. Any changes in HTML are reflected via HMR w/o full reload, where any change in VM resulted in full reload. I tried to do the same with the minimum skeleton, the result was not the same, as neither changes were reflected. As per my personal experience, the HMR in Aurelia works similar to the results found in the navigation skeleton. I need to dig deeper, but I suspect that it has nothing to do with the new refactoring. I need to verify this claim that with an earlier version of CLI though. |
Thx. I only tried latest webpack skeleton, not the old one. I am not sure when was this stopped working. |
@3cp I mean with which combination you created the skeleton on which you tested the HMR. BTW I have dug a bit, and I think this particular code is incorrectly binding the view with old context. And I suspect that this is the reason why the changes in VM is not reflected. I still need to dig deeper. |
I mean hmr is not working, code change triggered full reload, not hot module reload. |
The old run task added a plugin for hmr mode. I tried that but it didn't change anything. |
hmm... with webpack on a app I created last week I'm not noticing any page content reloads https://github.com/xenoterracide/capacitor-android-issue-repro |
I tried your repo, both Let me know your system setup (os, browser...) if |
I suspect actually that I was noticing this while I was trying to reload on code that was failing in some way (like failing to compile) so not a real issue, nevermind. |
@Sayan751 please have a look on hmr. I tried to bring back some plugin from old run task, but could not make it work.
The text was updated successfully, but these errors were encountered: