Skip to content

Commit 76c78af

Browse files
committed
Compile ESM to ES2019.
Testing compat for `npm` folks.
1 parent 3689739 commit 76c78af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/build-js.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build({
2424
build({
2525
entryPoints: ["src/webauthn-json/index.ts"],
2626
format: "esm",
27-
target: "es2020",
27+
target: "es2019",
2828
bundle: true,
2929
sourcemap: true,
3030
outfile: "dist/esm/webauthn-json.js",
@@ -33,7 +33,7 @@ build({
3333
build({
3434
entryPoints: ["src/webauthn-json/extended.ts"],
3535
format: "esm",
36-
target: "es2020",
36+
target: "es2019",
3737
bundle: true,
3838
sourcemap: true,
3939
outfile: "dist/esm/webauthn-json.extended.js",
@@ -63,7 +63,7 @@ const { version } = JSON.parse(
6363
await build({
6464
entryPoints: ["src/bin/main.ts"],
6565
format: "esm",
66-
target: "es2020",
66+
target: "es2019",
6767
bundle: true,
6868
sourcemap: true,
6969
define: { WEBAUTHN_JSON_VERSION: JSON.stringify(version) },

0 commit comments

Comments
 (0)