Skip to content

Commit

Permalink
refactor(core): allow nested array for standalone component imports
Browse files Browse the repository at this point in the history
TODO
  • Loading branch information
pmvald committed Sep 4, 2023
1 parent df759ab commit c76108c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/render3/deps_tracker/deps_tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {RuntimeError, RuntimeErrorCode} from '../../errors';
import {Type} from '../../interface/type';
import {Component} from '../../metadata';
import {NgModuleType} from '../../metadata/ng_module_def';
import {flatten} from '../../util/array_utils';
import {getComponentDef, getNgModuleDef, isStandalone} from '../definition';
import {ComponentType, NgModuleScopeInfoFromDecorator} from '../interfaces/definition';
import {isComponent, isDirective, isNgModule, isPipe, verifyStandaloneImport} from '../jit/util';
Expand Down Expand Up @@ -239,7 +240,7 @@ class DepsTracker implements DepsTrackerApi {
},
};

for (const rawImport of rawImports ?? []) {
for (const rawImport of flatten(rawImports ?? [])) {
const imported = resolveForwardRef(rawImport) as Type<any>;

try {
Expand Down

0 comments on commit c76108c

Please sign in to comment.