Skip to content

Support for top level async await when using esbuild. #4611

Discussion options

You must be logged in to vote

Hey @MattBidewell,

Thanks for providing an example, made it really quick to reproduce. I was able to getting it working by changing the target to node16 and changing the format from cjs to esm.

Metadata: # Manage esbuild properties
   BuildMethod: esbuild
   BuildProperties:
      Target: "node16"
      Format: esm
      Sourcemap: true
      EntryPoints:
        - src/handler.ts

Replies: 1 comment 1 reply

Comment options

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

Answer selected by MattBidewell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants