Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Feature request: Augment chunk hash #45

Open
arggh opened this issue Nov 4, 2019 · 1 comment
Open

Feature request: Augment chunk hash #45

arggh opened this issue Nov 4, 2019 · 1 comment

Comments

@arggh
Copy link

arggh commented Nov 4, 2019

Rollup now has an augmentChunkHash hook for plugins, read more →

The idea is, rollup-plugin-terser could augment the hashes when it's being used, or even when it's own settings change and affect the output of those chunks.

This would prevent scenarios like the one I had tonight, where my chunks' hashes were not changing even though I was experimenting with Rollup's config, enabling and disabling rollup-plugin-terser and some of it's settings, and thus also affecting the output content.

This behavior combined with those chunks being served with some pretty long lasting caching headers and... it took me a while to figure out why things weren't working as expected.

@TrySound
Copy link
Owner

Hi @arggh Would you like to send a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants