diff --git a/packages/compiler-cli/src/ngtsc/transform/src/translator.ts b/packages/compiler-cli/src/ngtsc/transform/src/translator.ts index 095e30683e..dc4b69c1f2 100644 --- a/packages/compiler-cli/src/ngtsc/transform/src/translator.ts +++ b/packages/compiler-cli/src/ngtsc/transform/src/translator.ts @@ -46,6 +46,7 @@ const CORE_SUPPORTED_SYMBOLS = new Set([ 'ɵInjectableDef', 'ɵInjectorDef', 'ɵNgModuleDef', + 'ɵNgModuleFactory', ]); export class ImportManager { diff --git a/packages/core/src/r3_symbols.ts b/packages/core/src/r3_symbols.ts index 10a3d014ee..4dc848392d 100644 --- a/packages/core/src/r3_symbols.ts +++ b/packages/core/src/r3_symbols.ts @@ -23,7 +23,7 @@ export {InjectableDef as ɵInjectableDef, InjectorDef as ɵInjectorDef, defineIn export {inject} from './di/injector'; export {NgModuleDef as ɵNgModuleDef} from './metadata/ng_module'; export {defineNgModule as ɵdefineNgModule} from './render3/definition'; - +export {NgModuleFactory as ɵNgModuleFactory} from './render3/ng_module_ref'; /** * The existence of this constant (in this particular file) informs the Angular compiler that the diff --git a/packages/core/test/bundling/todo/bundle.golden_symbols.json b/packages/core/test/bundling/todo/bundle.golden_symbols.json index 5d341add12..afc2343061 100644 --- a/packages/core/test/bundling/todo/bundle.golden_symbols.json +++ b/packages/core/test/bundling/todo/bundle.golden_symbols.json @@ -198,7 +198,7 @@ "name": "ViewEncapsulation$1" }, { - "name": "ViewRef$1" + "name": "ViewRef" }, { "name": "_CLEAN_PROMISE"