Skip to content

Commit

Permalink
fix(tsconfig-common): Distinguish between Node and Browser modules
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Aug 29, 2023
1 parent efa6c5a commit e70026a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/tsconfig-common/tsconfig-react.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "react",
"lib": ["es2022", "dom"]
"lib": [
"es2022",
"dom"
],
"moduleResolution": "bundler",
"module": "esnext"
},
"display": "React",
"extends": "./tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig-common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2022"],
"module": "esnext",
"module": "nodenext",
"moduleResolution": "node16",
"newLine": "lf",
"noEmitOnError": true,
Expand Down

0 comments on commit e70026a

Please sign in to comment.