Skip to content

Commit

Permalink
Set target to es2019 in default tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 30, 2021
1 parent 96cbda3 commit e7c46c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shaggy-elephants-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Set target to es2019 in default tsconfig.json
2 changes: 1 addition & 1 deletion packages/create-svelte/template-additions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es2018",
"target": "es2019",
/**
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 e7c46c0

Please sign in to comment.