Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 616 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 616 Bytes

sam-cli-esbuild-top-level-await

Small project to demo an issue with top level await when using AWS Sam CLI and esbuild

Problem

I would like to use the NodeJS top level await feature with AWS Sam and esbuild. A esbuild complimation error of Top-level await is not avaliable in the configure target environment ("es2020")

Replcate

With the AWS Sam CLI installed run sam build -t template.yaml.