aws / aws/aws-cdk

aws_lambda_nodejs : add `NodejsFunctionV2` that uses rspack instead of esbuild for bundling

Open
#30,736 1 comment 0 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
1d 19h
Merged PRs (30d)
74

Description

### Describe the feature

[Rspack](https://github.com/web-infra-dev/rspack) has been growing in popularity over the last year and it has [several advantages over esbuild](https://blog.logrocket.com/migrate-rspack-webpack/#rspack-vs-esbuild), so I think it would be nice to have an alternative construct that makes use of it.

### Use Case

Alternative bundler for `NodejsFunction`

### Proposed Solution

_No response_

### 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.147.3

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

Ubuntu 22.04.3 LTS

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing NodejsFunction bundling behavior and the Rspack and esbuild references linked in the issue. Establish the scope and compatibility expectations for a NodejsFunctionV2 alternative; done means the requested Rspack-based bundler behavior is clearly defined and implemented for AWS CDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, nodejs, typescript
Domain
build-system, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.