Skip to content

Commit 518e1e9

Browse files
authored
fix(migrations): restore extra check for root entry imports only (#16569)
1 parent a7bed8e commit 518e1e9

File tree

1 file changed

+5
-0
lines changed
  • projects/igniteui-angular/migrations/update-21_0_0_import-migration

1 file changed

+5
-0
lines changed

projects/igniteui-angular/migrations/update-21_0_0_import-migration/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,11 @@ function migrateImportDeclaration(node: ts.ImportDeclaration, sourceFile: ts.Sou
719719
const importPath = node.moduleSpecifier.text;
720720
const namedBindings = node.importClause.namedBindings;
721721

722+
// Only process main entry imports (not sub-entry points which igNamedImportFilter will allow)
723+
if (importPath !== IG_PACKAGE_NAME && importPath !== IG_LICENSED_PACKAGE_NAME) {
724+
return null;
725+
}
726+
722727
// Group imports by entry point
723728
const entryPointGroups = new Map<string, string[]>();
724729

0 commit comments

Comments
 (0)