Skip to content

Commit 6fc28c6

Browse files
authored
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.
1 parent 719cac5 commit 6fc28c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tsc=$(yarn bin tsc)
1414
sharedOptions=()
1515
sharedOptions+=("--bundle")
1616
sharedOptions+=("--platform=browser")
17-
sharedOptions+=("--target=es2020")
17+
sharedOptions+=("--target=es2019")
1818

1919
# Generate actual builds
2020
NODE_ENV=production $esbuild $input --format=esm --outfile=$outdir/$name.esm.js --minify ${sharedOptions[@]} $@ &

0 commit comments

Comments
 (0)