@angular/compiler-cli 19.1.2 → 19.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-6L6IA5LC.js → chunk-DTXH7LOW.js} +19 -4
- package/bundles/{chunk-6L6IA5LC.js.map → chunk-DTXH7LOW.js.map} +1 -1
- package/bundles/{chunk-5OSHDF7H.js → chunk-FKFYHCYY.js} +3 -3
- package/bundles/{chunk-KDZJJLGF.js → chunk-IWQC66R5.js} +2 -2
- package/bundles/chunk-KEYCV7GA.js +1 -1
- package/bundles/{chunk-U65IRA6O.js → chunk-VKWVSPWR.js} +2 -2
- package/bundles/{chunk-YPV7N3NA.js → chunk-XZ4L2FK2.js} +2 -2
- package/bundles/index.js +5 -5
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- /package/bundles/{chunk-5OSHDF7H.js.map → chunk-FKFYHCYY.js.map} +0 -0
- /package/bundles/{chunk-KDZJJLGF.js.map → chunk-IWQC66R5.js.map} +0 -0
- /package/bundles/{chunk-U65IRA6O.js.map → chunk-VKWVSPWR.js.map} +0 -0
- /package/bundles/{chunk-YPV7N3NA.js.map → chunk-XZ4L2FK2.js.map} +0 -0
|
@@ -13741,18 +13741,25 @@ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
|
|
|
13741
13741
|
ts45.forEachChild(node, this.addAllTopLevelIdentifiers);
|
|
13742
13742
|
}
|
|
13743
13743
|
};
|
|
13744
|
-
isTopLevelIdentifierReference(
|
|
13745
|
-
|
|
13744
|
+
isTopLevelIdentifierReference(identifier) {
|
|
13745
|
+
let node = identifier;
|
|
13746
|
+
let parent = node.parent;
|
|
13746
13747
|
if (!parent) {
|
|
13747
13748
|
return false;
|
|
13748
13749
|
}
|
|
13750
|
+
if (ts45.isParenthesizedExpression(parent) && parent.expression === node) {
|
|
13751
|
+
while (parent && ts45.isParenthesizedExpression(parent)) {
|
|
13752
|
+
node = parent;
|
|
13753
|
+
parent = parent.parent;
|
|
13754
|
+
}
|
|
13755
|
+
}
|
|
13749
13756
|
if (ts45.isSourceFile(parent)) {
|
|
13750
13757
|
return true;
|
|
13751
13758
|
}
|
|
13752
13759
|
if (ts45.isCallExpression(parent)) {
|
|
13753
13760
|
return parent.expression === node || parent.arguments.includes(node);
|
|
13754
13761
|
}
|
|
13755
|
-
if (ts45.isExpressionStatement(parent) || ts45.isPropertyAccessExpression(parent) || ts45.isComputedPropertyName(parent) || ts45.isTemplateSpan(parent) || ts45.isSpreadAssignment(parent) || ts45.isSpreadElement(parent) || ts45.isAwaitExpression(parent) || ts45.isNonNullExpression(parent) || ts45.isIfStatement(parent) || ts45.isDoStatement(parent) || ts45.isWhileStatement(parent) || ts45.isSwitchStatement(parent) || ts45.isCaseClause(parent) || ts45.isThrowStatement(parent)) {
|
|
13762
|
+
if (ts45.isExpressionStatement(parent) || ts45.isPropertyAccessExpression(parent) || ts45.isComputedPropertyName(parent) || ts45.isTemplateSpan(parent) || ts45.isSpreadAssignment(parent) || ts45.isSpreadElement(parent) || ts45.isAwaitExpression(parent) || ts45.isNonNullExpression(parent) || ts45.isIfStatement(parent) || ts45.isDoStatement(parent) || ts45.isWhileStatement(parent) || ts45.isSwitchStatement(parent) || ts45.isCaseClause(parent) || ts45.isThrowStatement(parent) || ts45.isNewExpression(parent)) {
|
|
13756
13763
|
return parent.expression === node;
|
|
13757
13764
|
}
|
|
13758
13765
|
if (ts45.isArrayLiteralExpression(parent)) {
|
|
@@ -13785,6 +13792,9 @@ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
|
|
|
13785
13792
|
if (ts45.isImportSpecifier(parent) || ts45.isExportSpecifier(parent)) {
|
|
13786
13793
|
return (parent.propertyName || parent.name) === node;
|
|
13787
13794
|
}
|
|
13795
|
+
if (ts45.isConditionalExpression(parent)) {
|
|
13796
|
+
return parent.condition === node || parent.whenFalse === node || parent.whenTrue === node;
|
|
13797
|
+
}
|
|
13788
13798
|
return false;
|
|
13789
13799
|
}
|
|
13790
13800
|
isTypeScriptNode(value) {
|
|
@@ -14482,6 +14492,11 @@ var ComponentDecoratorHandler = class {
|
|
|
14482
14492
|
for (const dep of dependencies) {
|
|
14483
14493
|
if (dep.ref.node !== node) {
|
|
14484
14494
|
eagerlyUsed.add(dep.ref.node);
|
|
14495
|
+
} else {
|
|
14496
|
+
const used = bound.getEagerlyUsedDirectives();
|
|
14497
|
+
if (used.some((current) => current.ref.node === node)) {
|
|
14498
|
+
eagerlyUsed.add(node);
|
|
14499
|
+
}
|
|
14485
14500
|
}
|
|
14486
14501
|
}
|
|
14487
14502
|
} else {
|
|
@@ -15503,4 +15518,4 @@ export {
|
|
|
15503
15518
|
* Use of this source code is governed by an MIT-style license that can be
|
|
15504
15519
|
* found in the LICENSE file at https://angular.dev/license
|
|
15505
15520
|
*/
|
|
15506
|
-
//# sourceMappingURL=chunk-
|
|
15521
|
+
//# sourceMappingURL=chunk-DTXH7LOW.js.map
|