-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Hashes aren't correctly invalidated when running Rollup in watch mode #2435
Comments
I'm seeing what appears to be the same bug, in a Sapper application. The only difference is that for me this is not limited to watch mode, but also happens with normal builds. Here's an example. The left box shows the JS assets loaded by the site before making changes to |
I just tested this against master (15e0885) because there were some changes to how chunking is done, but it is unfortunately still a problem. @Rich-Harris's repro doesn't just apply to watch mode, |
Ah I see. This issue is that static dependencies are taken into account when calculating hashes while dynamic dependencies are ignored. I might be able to sneak something into the next release as it would be nice to have this working for 1.0. |
Thank you, that would be fantastic! |
Fix at #2596, should be part of the next release |
That was quick! Thanks so much, Lukas. |
How Do We Reproduce?
https://github.com/Rich-Harris/rollup-watch-hash-bug
Expected Behavior
Changing the content of a file invalidates the hash of the chunk that contains it. It should also invalidate the hashes of any chunks that depend on that chunk.
Actual Behavior
It doesn't. The dependants' hashes stay the same, even though their content has changed to reflect the new import.
The text was updated successfully, but these errors were encountered: