@@ -11,16 +11,11 @@ import {
11
11
ApplicationRef ,
12
12
Compiler ,
13
13
Injector ,
14
- createPlatformFactory ,
15
- platformCore ,
16
14
runInInjectionContext ,
17
15
ɵwhenStable as whenStable ,
18
16
ɵConsole ,
19
17
} from '@angular/core' ;
20
- import {
21
- INITIAL_CONFIG ,
22
- ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS ,
23
- } from '@angular/platform-server' ;
18
+ import { INITIAL_CONFIG , platformServer } from '@angular/platform-server' ;
24
19
import { Route , Router , ɵloadChildren as loadChildrenHelper } from '@angular/router' ;
25
20
import { ServerAssets } from '../assets' ;
26
21
import { Console } from '../console' ;
@@ -377,7 +372,7 @@ export async function getRoutesFromAngularRouterConfig(
377
372
const { protocol, host } = url ;
378
373
379
374
// Create and initialize the Angular platform for server-side rendering.
380
- const platformRef = createPlatformFactory ( platformCore , 'server' , [
375
+ const platformRef = platformServer ( [
381
376
{
382
377
provide : INITIAL_CONFIG ,
383
378
useValue : { document, url : `${ protocol } //${ host } /` } ,
@@ -386,8 +381,7 @@ export async function getRoutesFromAngularRouterConfig(
386
381
provide : ɵConsole ,
387
382
useFactory : ( ) => new Console ( ) ,
388
383
} ,
389
- ...INTERNAL_SERVER_PLATFORM_PROVIDERS ,
390
- ] ) ( ) ;
384
+ ] ) ;
391
385
392
386
try {
393
387
let applicationRef : ApplicationRef ;
0 commit comments