-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
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!
Reactions are currently unavailable