You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So cracking open the latest amazon/aws-lambda-nodejs image I see this in UserFunction.js...
// If still not loaded, try .js, .mjs, and .cjs in that order.// Files ending with .js are loaded as ES modules when the nearest parent package.json// file contains a top-level field "type" with a value of "module".// https://nodejs.org/api/packages.html#packages_typeconstloaded=(pjHasModule&&_tryAwaitImport(lambdaStylePath,".js"))||_tryAwaitImport(lambdaStylePath,".mjs")||_tryRequireFile(lambdaStylePath,".cjs");
so it looks to have been added, but hasn't made it up to this repo yet?
Activity
darrinholst commentedon Feb 8, 2022
So cracking open the latest
amazon/aws-lambda-nodejsimage I see this in UserFunction.js...so it looks to have been added, but hasn't made it up to this repo yet?
tforster commentedon Jun 22, 2022
It's now more than halfway through June. Is there any update on this issue? It's pretty critical not to be able to use ES modules in 2022.
daniel-gato commentedon Oct 9, 2022
Same here, we need this asap.
adding support for .cjs file extensions for user function
govindrai commentedon Jun 22, 2023
Don't want to repeat the same request but it would be great it to get some response from maintainers
krk commentedon Jun 23, 2023
This is fixed in #70.