Skip to content

Commit c856657

Browse files
committed
4fa5d18 feat(bazel): support bundling .d.ts with code splitting (#60321)
1 parent 4c21e31 commit c856657

22 files changed

+63
-45
lines changed

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Tue Mar 11 18:38:39 UTC 2025
2-
8be6e3888b0d918f945fe4937353ce3cc1ec7f77
1+
Tue Mar 11 20:12:26 UTC 2025
2+
4fa5d18e5a57be03979b73be03a3d280c6dc0cb5

bundles/chunk-4AXNORTP.js renamed to bundles/chunk-B73DMM7T.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

bundles/chunk-XQN5ZVOJ.js renamed to bundles/chunk-CD575TJ6.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ function toR3Reference(origin, ref, context, refEmitter) {
103103
function isAngularCore(decorator) {
104104
return decorator.import !== null && decorator.import.from === CORE_MODULE;
105105
}
106-
function isAngularCoreReference(reference, symbolName, isCore) {
107-
return (reference.ownedByModuleGuess === CORE_MODULE || isCore) && reference.debugName === symbolName;
106+
function isAngularCoreReferenceWithPotentialAliasing(reference, symbolName, isCore) {
107+
var _a;
108+
return (reference.ownedByModuleGuess === CORE_MODULE || isCore) && ((_a = reference.debugName) == null ? void 0 : _a.replace(/\$\d+$/, "")) === symbolName;
108109
}
109110
function findAngularDecorator(decorators, name, isCore) {
110111
return decorators.find((decorator) => isAngularDecorator(decorator, name, isCore));
@@ -173,7 +174,7 @@ function tryUnwrapForwardRef(node, reflector) {
173174
}
174175
function createForwardRefResolver(isCore) {
175176
return (fn, callExpr, resolve, unresolvable) => {
176-
if (!isAngularCoreReference(fn, "forwardRef", isCore) || callExpr.arguments.length !== 1) {
177+
if (!isAngularCoreReferenceWithPotentialAliasing(fn, "forwardRef", isCore) || callExpr.arguments.length !== 1) {
177178
return unresolvable;
178179
}
179180
const expanded = expandForwardRef(callExpr.arguments[0]);
@@ -3522,7 +3523,7 @@ function resolveEnumValue(evaluator, metadata, field, enumSymbolName, isCore) {
35223523
if (metadata.has(field)) {
35233524
const expr = metadata.get(field);
35243525
const value = evaluator.evaluate(expr);
3525-
if (value instanceof EnumValue && isAngularCoreReference(value.enumRef, enumSymbolName, isCore)) {
3526+
if (value instanceof EnumValue && isAngularCoreReferenceWithPotentialAliasing(value.enumRef, enumSymbolName, isCore)) {
35263527
resolved = value.resolved;
35273528
} else {
35283529
throw createValueHasWrongTypeError(expr, value, `${field} must be a member of ${enumSymbolName} enum from @angular/core`);
@@ -15682,4 +15683,4 @@ export {
1568215683
* Use of this source code is governed by an MIT-style license that can be
1568315684
* found in the LICENSE file at https://angular.dev/license
1568415685
*/
15685-
//# sourceMappingURL=chunk-XQN5ZVOJ.js.map
15686+
//# sourceMappingURL=chunk-CD575TJ6.js.map

bundles/chunk-CD575TJ6.js.map

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/chunk-WFEGTRAX.js renamed to bundles/chunk-FVYXSSAL.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

bundles/chunk-WAMLNHJC.js renamed to bundles/chunk-PAYJFU4V.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

bundles/chunk-KWK7R2JA.js renamed to bundles/chunk-RFDMMGNB.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)