File tree 2 files changed +7
-15
lines changed
2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -168,13 +168,6 @@ export class AngularServerApp {
168
168
) ;
169
169
}
170
170
171
- if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
172
- // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.
173
- // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.
174
- // See: https://github.com/angular/angular-cli/issues/25924
175
- ɵresetCompiledComponents ( ) ;
176
- }
177
-
178
171
const { manifest, hooks, assets } = this ;
179
172
180
173
let html = await assets . getIndexServerHtml ( ) ;
@@ -220,5 +213,12 @@ export function getOrCreateAngularServerApp(): AngularServerApp {
220
213
* typically when server configuration or application state needs to be refreshed.
221
214
*/
222
215
export function destroyAngularServerApp ( ) : void {
216
+ if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
217
+ // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.
218
+ // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.
219
+ // See: https://github.com/angular/angular-cli/issues/25924
220
+ ɵresetCompiledComponents ( ) ;
221
+ }
222
+
223
223
angularServerApp = undefined ;
224
224
}
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {
15
15
platformCore ,
16
16
ɵwhenStable as whenStable ,
17
17
ɵConsole ,
18
- ɵresetCompiledComponents ,
19
18
} from '@angular/core' ;
20
19
import {
21
20
INITIAL_CONFIG ,
@@ -191,13 +190,6 @@ export async function getRoutesFromAngularRouterConfig(
191
190
document : string ,
192
191
url : URL ,
193
192
) : Promise < AngularRouterConfigResult > {
194
- if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
195
- // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.
196
- // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.
197
- // See: https://github.com/angular/angular-cli/issues/25924
198
- ɵresetCompiledComponents ( ) ;
199
- }
200
-
201
193
const { protocol, host } = url ;
202
194
203
195
// Create and initialize the Angular platform for server-side rendering.
You can’t perform that action at this time.
0 commit comments