@angular/compiler-cli 14.0.0-rc.0 → 14.0.0-rc.1

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.
@@ -5983,23 +5983,25 @@ var ComponentDecoratorHandler = class {
5983
5983
  }
5984
5984
  const cyclesFromDirectives = /* @__PURE__ */ new Map();
5985
5985
  const cyclesFromPipes = /* @__PURE__ */ new Map();
5986
- for (const usedDep of declarations) {
5987
- const cycle = this._checkForCyclicImport(usedDep.importedFile, usedDep.type, context);
5988
- if (cycle !== null) {
5989
- switch (usedDep.kind) {
5990
- case R3TemplateDependencyKind.Directive:
5991
- cyclesFromDirectives.set(usedDep, cycle);
5992
- break;
5993
- case R3TemplateDependencyKind.Pipe:
5994
- cyclesFromPipes.set(usedDep, cycle);
5995
- break;
5986
+ if (!metadata.isStandalone) {
5987
+ for (const usedDep of declarations) {
5988
+ const cycle = this._checkForCyclicImport(usedDep.importedFile, usedDep.type, context);
5989
+ if (cycle !== null) {
5990
+ switch (usedDep.kind) {
5991
+ case R3TemplateDependencyKind.Directive:
5992
+ cyclesFromDirectives.set(usedDep, cycle);
5993
+ break;
5994
+ case R3TemplateDependencyKind.Pipe:
5995
+ cyclesFromPipes.set(usedDep, cycle);
5996
+ break;
5997
+ }
5996
5998
  }
5997
5999
  }
5998
6000
  }
5999
6001
  const cycleDetected = cyclesFromDirectives.size !== 0 || cyclesFromPipes.size !== 0;
6000
6002
  if (!cycleDetected) {
6001
6003
  for (const { type, importedFile } of declarations) {
6002
- this._recordSyntheticImport(importedFile, type, context);
6004
+ this.maybeRecordSyntheticImport(importedFile, type, context);
6003
6005
  }
6004
6006
  const wrapDirectivesAndPipesInClosure = declarations.some((decl) => isExpressionForwardReference(decl.type, node.name, context));
6005
6007
  data.declarations = declarations;
@@ -6112,7 +6114,7 @@ var ComponentDecoratorHandler = class {
6112
6114
  }
6113
6115
  return this.cycleAnalyzer.wouldCreateCycle(origin, imported);
6114
6116
  }
6115
- _recordSyntheticImport(importedFile, expr, origin) {
6117
+ maybeRecordSyntheticImport(importedFile, expr, origin) {
6116
6118
  const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
6117
6119
  if (imported === null) {
6118
6120
  return;
@@ -6528,4 +6530,4 @@ export {
6528
6530
  * Use of this source code is governed by an MIT-style license that can be
6529
6531
  * found in the LICENSE file at https://angular.io/license
6530
6532
  */
6531
- //# sourceMappingURL=chunk-GJVJ6GH4.js.map
6533
+ //# sourceMappingURL=chunk-74SXTDBS.js.map