Skip to content

Commit df72937

Browse files
authored
Allow TypeScript to resolve JSON modules (#209)
1 parent c6a6f07 commit df72937

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
4646
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
4747
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
48-
"skipLibCheck": false /* Skip type checking of declaration files. */
48+
"skipLibCheck": false, /* Skip type checking of declaration files. */
49+
"resolveJsonModule": true /* Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. */
4950

5051
/* Source Map Options */
5152
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */

0 commit comments

Comments
 (0)