Skip to content

Commit dac29c5

Browse files
create-svelte: allow importing JSON modules (#792)
Co-authored-by: Rich Harris <[email protected]>
1 parent c0b9873 commit dac29c5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .changeset/poor-bobcats-unite.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-svelte': patch
3+
---
4+
5+
allow importing JSON modules

Diff for: packages/create-svelte/template-additions/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
"importsNotUsedAsValues": "error",
1010
"isolatedModules": true,
11+
"resolveJsonModule": true,
1112
/**
1213
To have warnings/errors of the Svelte compiler at the correct position,
1314
enable source maps by default.

0 commit comments

Comments
 (0)