Skip to content

Commit

Permalink
create-svelte: update tsconfig to allow es2020 module and lib (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrygrFlzr authored Apr 1, 2021
1 parent db1ccd3 commit 570f90c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-lamps-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Update tsconfig to use module and lib es2020
2 changes: 2 additions & 0 deletions packages/create-svelte/template-additions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "node",
"module": "es2020",
"lib": ["es2020"],
"target": "es2019",
/**
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
Expand Down

0 comments on commit 570f90c

Please sign in to comment.