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:
Alan Agius
2025-09-29 14:20:23 -04:00
committed by kirjs
parent 377d1a0aea
commit fc643c9044
36 changed files with 70 additions and 60 deletions
@@ -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;
}
+1 -1
View File
@@ -10,7 +10,7 @@
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"importHelpers": true,
"target": "es2020",