You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2024. It is now read-only.
- Do you want to request a feature or report a bug?
Feature
- What is the current behavior?
When Node.js functions are built with source maps enabled the hash of the ZIP file will be different each time because the name of the temporary build folder is included in the source map.
In our deployment pipeline we are using Terraform with the source_code_hash argument to detect code changes, but this is now different for each deployment regardless of any change being made.
- What is the expected behavior?
Being able to supply a build directory, similar to the rustTargetDirectory would resolve this issue.
- Please mention your node.js, and operating system version.
Node.js v14
The text was updated successfully, but these errors were encountered:
@eduardoboucas is it correct that this would also fix the issue? Ideally the source map uses paths relative to the source root instead of using the temporary build directory as absolute path
Hi @bram-l! Thanks for raising this and apologies for the slow response.
The esbuild PR you linked would indeed solve this issue, and I think it'd be the best course of action. We can integrate it into Netlify's fork of esbuild.
I'm afraid I don't have an exact timeline for this, but I'll make sure to keep this issue updated with any progress.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
- Do you want to request a feature or report a bug?
Feature
- What is the current behavior?
When Node.js functions are built with source maps enabled the hash of the ZIP file will be different each time because the name of the temporary build folder is included in the source map.
In our deployment pipeline we are using Terraform with the source_code_hash argument to detect code changes, but this is now different for each deployment regardless of any change being made.
- What is the expected behavior?
Being able to supply a build directory, similar to the
rustTargetDirectory
would resolve this issue.- Please mention your node.js, and operating system version.
Node.js v14
The text was updated successfully, but these errors were encountered: