Revert "fix(compiler): mark NgModuleFactory construction as not side effectful (#38147)" (#38303)

This reverts commit 7f8c2225f2.

This commit caused test failures internally, which were traced back to the
optimizer removing NgModuleFactory constructor calls when those calls caused
side-effectful registration of NgModules by their ids.

PR Close #38303
This commit is contained in:
Alex Rickabaugh
2020-07-30 11:22:49 -07:00
parent 1eebb7f189
commit 3a525d196b
6 changed files with 7 additions and 18 deletions

View File

@ -103,5 +103,3 @@ export interface QueryList<T>/* implements Iterable<T> */ {
export type NgIterable<T> = Array<T>|Iterable<T>;
export class NgZone {}
export declare function ɵnoSideEffects<T>(fn: () => T): T;