-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[FeatureRequest] reproducable build among npm and pnpm #1499
Comments
pnpm: Fast, disk space efficient package manager repo: https://github.com/pnpm/pnpm |
The file path is the file path, and is not in esbuild's control. Non-minified output deliberately includes the file path because it's intended for debugging by a human. You will get different file paths with other different package managers too such as Yarn, which puts files inside zip files. Relative file paths of input files are also included in the hashes present in output file names (a critical correctness feature for bugs such as #928), so even removing the file path comments and strings in the output files that you are pointing to does not guarantee reproducible builds. Basically this is by design. Builds are only reproducible given the same file system contents. Use the same package manager if you want the same build output. |
You can use |
@hyrious Seems not working on v0.12.17. I try |
Maybe provide |
I'm closing this as "by design" as described above. The file structure is part of the input, and different inputs lead to different outputs. |
Brief
When using package manager
pnpm
, compare withnpm
.esbuild --bundle
reproduce different output.npm
pnpm
The text was updated successfully, but these errors were encountered: