Skip to content

How to enable esbuild output to be mjs? #4616

Discussion options

You must be logged in to vote

Hey @MattBidewell, thanks for bringing this up. This feature is on its way out, it was released in the latest version of Lambda Builders and will make its way to into a coming release of SAM-CLI. When it's released, you will need to simply add a new property to your template metadata.

BuildMethod: esbuild
BuildProperties:
    OutExtension: 
     - .js=.mjs

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MattBidewell
Comment options

Answer selected by MattBidewell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants