-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bun.build output hash doesn't account for dynamic import #12428
Comments
macros aren't yet part of the hash |
Not only macro, I use macro is just for demo, but actually it affect normal code... aka I changed the 3.ts to: export const random = 123 got output:
for
exactly same hash for different content and the macro DOES affect the hash, but only for 3.ts |
This issue can cause the CDN to provide old chunk files (because the generated file names are the same). |
fixed in 1.1.21 |
What version of Bun is running?
1.1.18+5a0b93523
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
file build.ts:
file 1.ts:
file 2.ts:
file 3.ts:
run build.ts with bun
What is the expected behavior?
the generated hash for entrypoint file will change when 3.ts changed (it use random, so will change every time)
What do you see instead?
got same hash for entrypoint file
Additional information
I use randomInt is only for PoC, normal editing will also cause this bug
The text was updated successfully, but these errors were encountered: