Skip to content

Commit

Permalink
fix(create-app): add resolveJsonModule to tsconfig.json for vue-ts te…
Browse files Browse the repository at this point in the history
…mplate (#1879)
  • Loading branch information
antfu authored Feb 5, 2021
1 parent c76c884 commit 2c914a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/create-app/template-vue-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"sourceMap": true,
"lib": ["esnext", "dom"],
"types": ["vite/client"],
"plugins": [{ "name": "@vuedx/typescript-plugin-vue" }]
"plugins": [{ "name": "@vuedx/typescript-plugin-vue" }],
"resolveJsonModule": true,
"esModuleInterop": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}

0 comments on commit 2c914a5

Please sign in to comment.