From 6fc28c610f14a3ab88a425cf97a67cee9bcb8e71 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 2 Feb 2022 18:55:36 +0100 Subject: [PATCH] temporarily target es2019 instead of es2020 (#1083) The Headless UI docs require some bumps in packages because it currently can't handle es2020 features like `??`. This tempory workaround should fix this in the mean time. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 860a8c0298..9d32bdf141 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,7 +14,7 @@ tsc=$(yarn bin tsc) sharedOptions=() sharedOptions+=("--bundle") sharedOptions+=("--platform=browser") -sharedOptions+=("--target=es2020") +sharedOptions+=("--target=es2019") # Generate actual builds NODE_ENV=production $esbuild $input --format=esm --outfile=$outdir/$name.esm.js --minify ${sharedOptions[@]} $@ &