mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit updates the TypeScript configuration across the project to use `moduleResolution: "bundler"`. This modernizes our module resolution strategy to align with current TypeScript best practices and bundler behaviors. The following changes are included: - Updated `tsconfig.json` files to set `moduleResolution` to `"bundler"`. - Updated the `rules_angular` bazel dependency to a version compatible with these changes. - Adjusted related test files and golden files to reflect the new module resolution strategy. PR Close #64125
29 lines
780 B
JSON
29 lines
780 B
JSON
{
|
|
"compilerOptions": {
|
|
"sourceMap": true,
|
|
"inlineSources": true,
|
|
"declaration": true,
|
|
"strict": true,
|
|
"noImplicitReturns": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"downlevelIteration": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"esModuleInterop": true,
|
|
"importHelpers": true,
|
|
"target": "es2020",
|
|
"lib": ["es2020", "dom", "dom.iterable"],
|
|
"types": ["chrome"],
|
|
// TODO: Have an IDE specific tsconfig file
|
|
"paths": {
|
|
"@angular/*": ["../packages/*/index"]
|
|
}
|
|
},
|
|
"angularCompilerOptions": {
|
|
"strictTemplates": true,
|
|
"strictInjectionParameters": true,
|
|
"unusedStandaloneImports": "error"
|
|
}
|
|
}
|