aws / aws/aws-cdk

aws-lambda-nodejs: introduce `NodejsFunctionV2` to support Rolldown as a bundler

Open
#32,723 5 comments 9 reactions 0 assignees View on GitHub
@aws-cdk/aws-lambda-nodejs effort/large feature-request p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

[Rolldown](https://github.com/rolldown/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](https://github.com/rolldown/rolldown/releases/tag/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

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.173.4

### Environment details (OS name and version, etc.)

Ubuntu 24.04.1

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the aws-lambda-nodejs module and its current bundler integration, then assess Rolldown's stability and API compatibility. Done means defining and implementing a production-ready NodejsFunctionV2 construct that supports Rolldown once it is stable.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, node.js, rust, typescript
Domain
build-system, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.