Skip to content

[Feature Request]: Reintroduce support for --experimental-require-module in node v24 #138

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

Open
pmosconi opened this issue May 15, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@pmosconi
Copy link

Starting with Lambda runtime version nodejs:22.v35, that corresponds to NodeJS v22.14.0, AWS has decided to stop supporting the ability to require ES modules.

This functionality was previously supported and advertised (see https://aws.amazon.com/blogs/compute/node-js-22-runtime-now-available-in-aws-lambda/) by AWS as an upgrade path strategy, for example for the middy.js middleware library (https://middy.js.org/docs/upgrade/5-6).
See here for more context: middyjs/middy#1288 (comment)

The reported reason for discontinuing it is an overall performance penalty impacting all workloads, not only those making use of the option.

The request is, simply, to try reintroducing the -experimental-require-module flag support in the new runtime version when it will be available.
Many thanks.

@godcrampy godcrampy added the enhancement New feature or request label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants