@@ -181,8 +181,10 @@ export function compileFactoryFunction(meta: R3FactoryMetadata):
181
181
} else {
182
182
const baseFactory = o . variable ( `ɵ${ meta . name } _BaseFactory` ) ;
183
183
const getInheritedFactory = o . importExpr ( R3 . getInheritedFactory ) ;
184
- const baseFactoryStmt = baseFactory . set ( getInheritedFactory . callFn ( [ meta . type ] ) )
185
- . toDeclStmt ( o . INFERRED_TYPE , [ o . StmtModifier . Final ] ) ;
184
+ const baseFactoryStmt =
185
+ baseFactory . set ( getInheritedFactory . callFn ( [ meta . type ] ) ) . toDeclStmt ( o . INFERRED_TYPE , [
186
+ o . StmtModifier . Exported , o . StmtModifier . Final
187
+ ] ) ;
186
188
statements . push ( baseFactoryStmt ) ;
187
189
188
190
// There is no constructor, use the base class' factory to construct typeForCtor.
@@ -206,8 +208,10 @@ export function compileFactoryFunction(meta: R3FactoryMetadata):
206
208
if ( meta . delegate . isEquivalent ( meta . type ) ) {
207
209
throw new Error ( `Illegal state: compiling factory that delegates to itself` ) ;
208
210
}
209
- const delegateFactoryStmt = delegateFactory . set ( getFactoryOf . callFn ( [ meta . delegate ] ) )
210
- . toDeclStmt ( o . INFERRED_TYPE , [ o . StmtModifier . Final ] ) ;
211
+ const delegateFactoryStmt =
212
+ delegateFactory . set ( getFactoryOf . callFn ( [ meta . delegate ] ) ) . toDeclStmt ( o . INFERRED_TYPE , [
213
+ o . StmtModifier . Exported , o . StmtModifier . Final
214
+ ] ) ;
211
215
212
216
statements . push ( delegateFactoryStmt ) ;
213
217
const r = makeConditionalFactory ( delegateFactory . callFn ( [ ] ) ) ;
0 commit comments