aws-lambda-nodejs: introduce NodejsFunctionV2
to support Rolldown as a bundler
#32723
Labels
@aws-cdk/aws-lambda-nodejs
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p3
Describe the feature
Rolldown is a Rust-based bundler that aims to provide API compatibility with Rollup and performance parity with esbuild.
On December 25, 2024, Rolldown v1.0.0-beta.1 was officially released, marking a major milestone in its development. With its modern design and growing adoption, Rolldown is poised to become the next standard for bundling and is already set to replace both esbuild and Rollup in Vite.
Use Case
In light of these advancements, adding support for Rolldown in the
aws-lambda-nodejs
module would provide future-proofing with a next-generation bundler aligned with modern frameworks, as well as improved performance through smaller bundle sizes and faster builds enabled by Rust-based optimizations.Proposed Solution
Monitor Rolldown's stability as it moves toward a production-ready release. Once stable, implement support for it with a new
NodejsFunctionV2
construct.Other Information
No response
Acknowledgements
CDK version used
2.173.4
Environment details (OS name and version, etc.)
Ubuntu 24.04.1
The text was updated successfully, but these errors were encountered: