Skip to content

Commit

Permalink
Relax ESM target to ES2019
Browse files Browse the repository at this point in the history
This results in nullish coalescing operators being transpiled away,
which in turn provides compatibility for iOS Safari versions prior to
v13.1, and macOS Safari versions prior to 13.4.
  • Loading branch information
coreyward committed Apr 17, 2023
1 parent 526aecc commit bf829ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ esbuild
.build({
...sharedConfig,
format: "esm",
target: ["es2020"],
target: ["es2019"],
splitting: true,
outdir: "dist/mjs",
})
Expand Down

0 comments on commit bf829ef

Please sign in to comment.