Describe your idea/feature/enhancement
Currently, when trying to use ES modules features (as described in https://aws.amazon.com/es/blogs/compute/using-node-js-es-modules-and-top-level-await-in-aws-lambda/) together with esbuild, some errors are thrown because the default output format for esbuild is .cjs, which doesn't support those.
Proposal
Add some option to change the output format to .mjs (maybe it could even be the default value)