@@ -15,7 +15,7 @@ import ts from 'typescript';
15
15
import { getAngularDecorators } from '../../utils/ng_decorators' ;
16
16
import { closestNode } from '../../utils/typescript/nodes' ;
17
17
18
- import { convertNgModuleDeclarationToStandalone , extractDeclarationsFromModule , findTestObjectsToMigrate , migrateTestDeclarations } from './to-standalone' ;
18
+ import { ComponentImportsRemapper , convertNgModuleDeclarationToStandalone , extractDeclarationsFromModule , findTestObjectsToMigrate , migrateTestDeclarations } from './to-standalone' ;
19
19
import { ChangeTracker , findClassDeclaration , findLiteralProperty , getNodeLookup , getRelativeImportPath , ImportRemapper , NamedClassDeclaration , NodeLookup , offsetsToNodes , ReferenceResolver , UniqueItemTracker } from './util' ;
20
20
21
21
/** Information extracted from a `bootstrapModule` call necessary to migrate it. */
@@ -35,7 +35,7 @@ interface BootstrapCallAnalysis {
35
35
export function toStandaloneBootstrap (
36
36
program : NgtscProgram , host : ts . CompilerHost , basePath : string , rootFileNames : string [ ] ,
37
37
sourceFiles : ts . SourceFile [ ] , printer : ts . Printer , importRemapper ?: ImportRemapper ,
38
- referenceLookupExcludedFiles ?: RegExp ) {
38
+ referenceLookupExcludedFiles ?: RegExp , componentImportRemapper ?: ComponentImportsRemapper ) {
39
39
const tracker = new ChangeTracker ( printer , importRemapper ) ;
40
40
const typeChecker = program . getTsProgram ( ) . getTypeChecker ( ) ;
41
41
const templateTypeChecker = program . compiler . getTemplateTypeChecker ( ) ;
@@ -71,7 +71,7 @@ export function toStandaloneBootstrap(
71
71
// declarations so we have to migrate them now.
72
72
for ( const declaration of allDeclarations ) {
73
73
convertNgModuleDeclarationToStandalone (
74
- declaration , allDeclarations , tracker , templateTypeChecker ) ;
74
+ declaration , allDeclarations , tracker , templateTypeChecker , componentImportRemapper ) ;
75
75
}
76
76
77
77
migrateTestDeclarations ( testObjects , allDeclarations , tracker , templateTypeChecker , typeChecker ) ;
0 commit comments