Skip to content
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

Webpack hash #1272

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Webpack hash #1272

merged 1 commit into from
Jan 26, 2021

Conversation

kairstenfay
Copy link
Contributor

Description of proposed changes

Drop third party webpack-chunk-hash library which appears to be abandonware and is causing unexpected behavior in our cached auspice files.

Related issue(s)

Fixes #1266

Testing

Follow James's handy list of steps to reproduce the initial bug.
With this patch, the entropy panel is no longer broken when cache is not disabled.
In step 17, the bundles also have identical contents.

@jameshadfield jameshadfield temporarily deployed to auspice-webpack-hash-talyotjuq January 22, 2021 21:28 Inactive
We noticed irregular behavior in the hashing of our ubndled auspice
files [1]. The webpack-chunk-hash (a.k.a. WebpackChunkHash) library
appears to have been abandoned by its developers with no commits in the
past 4 years. I'm not sure what purpose this library originally served,
but after taking a hint from Ivan, it appears that Webpack natively does
exactly what we want with respect to chunk hashing and content hashing.

Therefore, drop the third party webpack-chunk-hash library from our
webpack config in favor of the vanilla webpack API.

[1]: #1266
@kairstenfay kairstenfay temporarily deployed to auspice-webpack-hash-talyotjuq January 22, 2021 21:29 Inactive
@jameshadfield
Copy link
Member

Looks good, thanks!

I tested by repeating the steps to reproduce the bug and cherry-picking this commit onto each of the 2 commits examined there (in steps 2 and 10), with the resulting bundles appearing correct. I'll re-test tomorrow using a different method to double check and merge if (as expected) it works.

@kairstenfay
Copy link
Contributor Author

Looks good, thanks!

I tested by repeating the steps to reproduce the bug and cherry-picking this commit onto each of the 2 commits examined there (in steps 2 and 10), with the resulting bundles appearing correct. I'll re-test tomorrow using a different method to double check and merge if (as expected) it works.

Thanks, @jameshadfield !

@jameshadfield jameshadfield merged commit e851ce8 into master Jan 26, 2021
@jameshadfield jameshadfield deleted the webpack-hash branch January 26, 2021 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure bundle hashes are appropriately computed
2 participants