Matt Morgan
04/24/2022, 2:01 PMFunction
construct has support for esm as well as the necessary shim, but even if that option is used, it still outputs a .js file instead of .mjs. https://github.com/serverless-stack/serverless-stack/blob/master/packages/core/src/runtime/handler/node.ts#L53. Is there a reason for that or is that an oversight? Is the shim even needed for .js files?Matt Morgan
04/24/2022, 2:21 PMthdxr
04/24/2022, 2:22 PMthdxr
04/24/2022, 2:22 PMthdxr
04/24/2022, 2:22 PMMatt Morgan
04/24/2022, 2:22 PM