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.
This commit is contained in:
Robin Malfait
2022-02-02 18:55:36 +01:00
committed by GitHub
parent 719cac5366
commit 6fc28c610f
+1 -1
View File
@@ -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[@]} $@ &