Skip to content

Commit

Permalink
Add moduleDetection to TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 18, 2024
1 parent 8a6dc37 commit d90c7cf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-pdf/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "nodenext",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist",
Expand Down
1 change: 1 addition & 0 deletions sample/create-react-app-5/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "preserve",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions sample/next-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noEmit": true,
"noUncheckedIndexedAccess": true,
Expand Down
1 change: 1 addition & 0 deletions sample/next-pages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noEmit": true,
"noUncheckedIndexedAccess": true,
Expand Down
1 change: 1 addition & 0 deletions sample/parcel2/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "preserve",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions sample/vite/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "preserve",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions sample/webpack5/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "preserve",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"module": "preserve",
"moduleDetection": "force",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down

0 comments on commit d90c7cf

Please sign in to comment.