Skip to content

Commit

Permalink
Add the resolveJsonModule option
Browse files Browse the repository at this point in the history
So importing JSON files works.
  • Loading branch information
sindresorhus committed Mar 21, 2019
1 parent 4dc22f6 commit 9d39ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
// Disabled because of https://github.com/Microsoft/TypeScript/issues/29172
// "outDir": "dist",

"target": "es2016",
"target": "es2016", // Node.js 6
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"jsx": "react",
"sourceMap": true,
"declaration": true,
Expand Down

0 comments on commit 9d39ed4

Please sign in to comment.