-
Notifications
You must be signed in to change notification settings - Fork 3.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
(aws-cdk-lib/aws-lambda-nodejs BundlingOptions): platform
property should default to node
when not specified
#29290
Comments
Actually, I think the |
I'm quite confused. If I check any property within But if I check the This doesn't make any sense to me. It's unclear if the |
The --paltform prop is for docker image bundling and should be used with docker I believe. Maybe we should improve the doc for this prop. |
Mixing esbuild and Docker properties within the same interface seems to cause confusion. It might have been preferable to exclude esbuild properties entirely, relegating them to the You can also see from recent articles that there's ongoing confusion regarding the I also believe that the default setting for A further improvement might be to add a property named |
Upon further examination, it appears that |
Describe the bug
The
platform
property in BundlingOptions interface has wrong information.According to esbuild API docs, the default value is
browser
when no platform is specified. For this reason, we should change the default value tonode
for theBundlingOptions
of theNodejsFunction
resource.Expected Behavior
see above
Current Behavior
see above
Reproduction Steps
see above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.130.0
Framework Version
No response
Node.js Version
20.10.0
OS
Ubuntu 22.04.3 LTS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: