-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore(toolkit): migrate TypeScript setup to "moduleResolution": "bundler"
#5206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
EskiMojo14
merged 3 commits into
reduxjs:master
from
aryaemami59:chore/toolkit/migrate-to-bundler
Feb 7, 2026
+32
−42
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
dbf2285
chore(toolkit): migrate TS setup to `"moduleResolution": "bundler"`
aryaemami59 6d60728
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit int…
aryaemami59 3b606d6
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit int…
aryaemami59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,39 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ESnext", | ||
| "module": "ESnext", | ||
| "lib": ["DOM", "ESNext"], | ||
| "importHelpers": true, | ||
| // output .d.ts declaration files for consumers | ||
| "allowSyntheticDefaultImports": true, | ||
| "declaration": true, | ||
| // match output dir to input dir. e.g. dist/index instead of dist/src/index | ||
| "rootDir": "./src", | ||
| // stricter type-checking for stronger correctness. Recommended by TS | ||
| "strict": true, | ||
| // linter checks for common issues | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| // noUnused* overlap with @typescript-eslint/no-unused-vars, can disable if duplicative | ||
| "noUnusedLocals": false, | ||
| "noUnusedParameters": false, | ||
| // use Node's module resolution algorithm, instead of the legacy TS one | ||
| "moduleResolution": "Node", | ||
| // transpile JSX to React.createElement | ||
| "jsx": "react", | ||
| // interop between ESM and CJS modules. Recommended by TS | ||
| "declarationMap": true, | ||
| "esModuleInterop": true, | ||
| // significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS | ||
| "skipLibCheck": true, | ||
| // error out if import and file system have a casing mismatch. Recommended by TS | ||
| "forceConsistentCasingInFileNames": true, | ||
| // ensure that each file can be safely transpiled by babel (etc.) without relying on other imports | ||
| "isolatedModules": true, | ||
| "downlevelIteration": false, | ||
| "allowSyntheticDefaultImports": true, | ||
| "emitDeclarationOnly": true, | ||
| "types": ["vitest/globals", "vitest/importMeta", "node"], | ||
| "jsx": "react", | ||
| "lib": ["DOM", "ESNext"], | ||
| "module": "esnext", | ||
| "moduleDetection": "force", | ||
| "moduleResolution": "bundler", | ||
| "noEmit": true, | ||
| "noEmitOnError": true, | ||
| "noErrorTruncation": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "noImplicitOverride": true, | ||
| "noImplicitReturns": true, | ||
| "outDir": "./dist", | ||
| "paths": { | ||
| // internal imports in tests only | ||
| "@internal/*": ["./src/*"], | ||
| "@reduxjs/toolkit": ["./src/index.ts"], // @remap-prod-remove-line | ||
| "@reduxjs/toolkit/react": ["./src/react/index.ts"], // @remap-prod-remove-line | ||
| "@reduxjs/toolkit/query": ["./src/query/index.ts"], // @remap-prod-remove-line | ||
| "@reduxjs/toolkit/query/react": ["./src/query/react/index.ts"], // @remap-prod-remove-line | ||
| // internal imports in tests only | ||
| "@internal/*": ["./src/*"] | ||
| } | ||
| "@reduxjs/toolkit/react": ["./src/react/index.ts"] // @remap-prod-remove-line | ||
| }, | ||
| "resolveJsonModule": true, | ||
| "rootDir": "./src", | ||
| "skipLibCheck": true, | ||
| "sourceMap": true, | ||
| "strict": true, | ||
| "target": "esnext", | ||
| "types": ["node", "vitest/globals", "vitest/importMeta"], | ||
| "useDefineForClassFields": true, | ||
| "useUnknownInCatchVariables": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.