Skip to content

Commit

Permalink
create-svelte: Use target es2020 as default in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ambarvm committed Sep 27, 2021
1 parent b164420 commit 61c0204
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-buses-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Use target es2020 as default in tsconfig.json
2 changes: 1 addition & 1 deletion packages/create-svelte/shared/+typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"moduleResolution": "node",
"module": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2019",
"target": "es2020",
/**
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
to enforce using \`import type\` instead of \`import\` for Types.
Expand Down

0 comments on commit 61c0204

Please sign in to comment.