Skip to content

Commit

Permalink
Fix incorrect moduleResolution in tsconfig.json for package tests
Browse files Browse the repository at this point in the history
`moduleResolution` must be set to `node` as `resolveJsonModule: true`
cannot be used otherwise.
  • Loading branch information
VeskeR committed Nov 28, 2024
1 parent bb669eb commit fc7fe8b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/package/browser/template/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"include": [
"**/*.ts",
"**/*.tsx"
],
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "node",
"jsx": "react-jsx"
}
}

0 comments on commit fc7fe8b

Please sign in to comment.