Skip to content

Commit

Permalink
create-svelte: allow importing JSON modules (#792)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
  • Loading branch information
GrygrFlzr and Rich-Harris authored Mar 31, 2021
1 parent c0b9873 commit dac29c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-bobcats-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

allow importing JSON modules
1 change: 1 addition & 0 deletions packages/create-svelte/template-additions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"resolveJsonModule": true,
/**
To have warnings/errors of the Svelte compiler at the correct position,
enable source maps by default.
Expand Down

0 comments on commit dac29c5

Please sign in to comment.