feat(lib): add native NodejsFunction with Rolldown bundling - #402
feat(lib): add native NodejsFunction with Rolldown bundling#402garysassano wants to merge 6 commits into
NodejsFunction with Rolldown bundling#402Conversation
Signed-off-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
NodejsFunction with Rolldown bundling
|
I think this PR has interesting components that we may want to split and rebase:
These depend on an ongoing effort for defining a cross-cloud Asset (and bundling) mechanism as per #380 (also referenced in the issue driving this PR). Can we first align on how to slice and land these? Additionally - I think we aim to keep Currently you may use https://github.com/TerraConstructs/base/tree/main/src/aws/compute/function-nodejs which is already an exact Port of AWSCDK L2 + Asset Pipeline (as well as decoupled bundling). So perhaps the changes proposed here could improve that existing AWS L2 specific construct? Another consideration is the ongoing work to integrate with AWSCDK specifically through the AWSCC+cfncompat provider which is the ideal way forward.
in conclusion:
Let's align and discuss via cdk.dev slack and perhaps on the next CDKTN Sync-up call? |
Related issue
Closes #401
Description
Adds native
NodejsFunctionconstruct with Rolldown bundling, deterministic ZIP assets, and automatic IAM and logging setup:The unpublished TypeScript/JavaScript packages expose native Rolldown controls, validate build inputs and ZIP limits, and include package guides and a runnable example. Native addons require prepared files or layers.
Validation: 49 package tests, all 542 core tests, builds, lint, formatting, dependency and packed-consumer checks pass. AWS deployment, invocation, code updates and cleanup passed; all 12 resources were confirmed absent.
Checklist