Skip to content

Commit

Permalink
temporarily target es2019 instead of es2020 (#1083)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RobinMalfait committed Feb 2, 2022
1 parent 719cac5 commit 6fc28c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]} $@ &
Expand Down

0 comments on commit 6fc28c6

Please sign in to comment.