Skip to content

Commit

Permalink
🏗 update "target" and "module" to ES2022 in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Feb 12, 2024
1 parent 137eec7 commit 5fee9f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"compilerOptions": {
// - 😃 otherwise async/await will be transpiled
// - 😡 try/catch without an (err) isn't supported in Edge. see:
// https://github.com/astoilkov/use-local-storage-state/issues/7
"target": "ES2019",
"module": "ES2020",
"target": "ES2022",
"module": "ES2022",

// From what I understand while reading the docs "classic" was introduced first and "classic" is by
// default(except when "module": "commonjs") because of backwards compatibility.
Expand Down

0 comments on commit 5fee9f8

Please sign in to comment.