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

How to keep [hash] unchanged when in different path #4426

Closed
l1shu opened this issue Mar 3, 2022 · 6 comments · Fixed by #4543 or #4549
Closed

How to keep [hash] unchanged when in different path #4426

l1shu opened this issue Mar 3, 2022 · 6 comments · Fixed by #4543 or #4549

Comments

@l1shu
Copy link

l1shu commented Mar 3, 2022

I found same source file will create different [hash] when in different file path.

How to keep their hash unchanged even they are in different file path? Just according to their content, like [contenthash]

@lukastaegert
Copy link
Member

Not possible at the moment, this will be part of a major refactoring in Rollup 3

@frank-dspeed
Copy link
Contributor

this should maybe get renamed and joined with the issues @surma from google about deterministic hashing which is on the list of the web tooling report.

@lukastaegert
Copy link
Member

Should be fixed with #4543

@rollup-bot
Copy link
Collaborator

This issue has been resolved via #4543 as part of rollup@3.0.0-7. Note that this is a pre-release, so to test it, you need to install Rollup via npm install rollup@3.0.0-7 or npm install rollup@beta. It will likely become part of a regular release later.

@rollup-bot
Copy link
Collaborator

This issue has been resolved via #4543 as part of rollup@3.0.0-8. Note that this is a pre-release, so to test it, you need to install Rollup via npm install rollup@3.0.0-8 or npm install rollup@beta. It will likely become part of a regular release later.

@rollup-bot
Copy link
Collaborator

This issue has been resolved via #4543 as part of rollup@3.0.0. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants