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

I need a longer hash with customizable length. #4317

Closed
yangdan8 opened this issue Dec 24, 2021 · 5 comments · Fixed by #4543 or #4549
Closed

I need a longer hash with customizable length. #4317

yangdan8 opened this issue Dec 24, 2021 · 5 comments · Fixed by #4543 or #4549

Comments

@yangdan8
Copy link

Feature Use Case

The hash value of fixed 8-bit file content is too easy to conflict. I need a longer hash with customizable length. How should I set it

[hash:30]
[hash:6]

Feature Proposal

[hash:30]
[hash:6]

@frank-dspeed
Copy link
Contributor

frank-dspeed commented Jan 23, 2022

@yangdan8 you can already define names via a function you could simply add your own hash function and even drop the rollup hash from the mask please read the documentation about file name patterns

It should solve all cases as it is a function the only thing that it can not do at present at last is create hashes based on finalChunk output

@lukastaegert
Copy link
Member

This is now included in #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
Projects
None yet
4 participants