mirror of
https://github.com/angular/angular.git
synced 2026-11-28 09:27:52 -05:00
build: adopt moduleResolution: "bundler" (#64125)
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
This commit is contained in:
@@ -58,7 +58,9 @@ export function getInjectorId() {
|
||||
return `${injectorId++}`;
|
||||
}
|
||||
|
||||
export function getInjectorMetadata(injector: Injector) {
|
||||
export function getInjectorMetadata(
|
||||
injector: Injector,
|
||||
): ReturnType<NonNullable<ReturnType<typeof ngDebugClient>['ɵgetInjectorMetadata']>> {
|
||||
return ngDebugClient().ɵgetInjectorMetadata?.(injector) ?? null;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"esModuleInterop": true,
|
||||
"importHelpers": true,
|
||||
"target": "es2020",
|
||||
|
||||
Reference in New Issue
Block a user