Skip to content

Commit

Permalink
Set ES version in tsconfig.json to ESNEXT (Browser compatibility is h…
Browse files Browse the repository at this point in the history
…andled by webpack)
  • Loading branch information
tksst committed Oct 21, 2023
1 parent 1beb9d5 commit 00c7e38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/flat-starfishes-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tksst/next-app-additions": minor
---

Set ECMAScript version in tsconfig.json to ESNEXT. (Browser compatibility is handled by webpack)
2 changes: 1 addition & 1 deletion src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const main = async (): Promise<void> => {
throw new Error("tsconfig.json is in an unexpected format.");
}

x.target = "ES2015";
x.target = "esnext";
x.noImplicitOverride = true;
x.noImplicitReturns = true;
x.noUncheckedIndexedAccess = true;
Expand Down

0 comments on commit 00c7e38

Please sign in to comment.