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

Chunk file name hashes depend on absolute path of project #4634

Closed
wmassa opened this issue Sep 7, 2022 · 1 comment · Fixed by #4549
Closed

Chunk file name hashes depend on absolute path of project #4634

wmassa opened this issue Sep 7, 2022 · 1 comment · Fixed by #4549

Comments

@wmassa
Copy link

wmassa commented Sep 7, 2022

Rollup Version

2.78.1

Operating System (or Browser)

Mac OS

Node Version (if applicable)

No response

Link To Reproduction

https://github.com/wmassa/rollup-directory-hash-repro

Expected Behaviour

According to the documentation, chunk file names are based on content hashes. I think this means that a project should have the same filenames no matter the absolute path of the project.

Actual Behaviour

The chunk file names change if you rename the directory of a project.

I created a repro where the same project is in a directory a and b. Rollup generates different filenames for the chunks. This is weird as I expect both projects to generate the same chunk files.

E.g. for me, it created a file called Bundle-692bf0ae.js in folder a and a file called Bundle-b8a1dd7d.js in folder b.

Thanks for looking!

@lukastaegert
Copy link
Member

Fixed in #4549

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

Successfully merging a pull request may close this issue.

2 participants