docs(ivy): add a not about compile-time constants to the ivy compatibility guide (#35194)

PR Close #35194
This commit is contained in:
Igor Minar 2020-02-06 12:52:34 -08:00 committed by Misko Hevery
parent 053dabb7ed
commit 86db592b5c
1 changed files with 7 additions and 4 deletions

View File

@ -31,6 +31,9 @@ If your app imports from shared libraries that are meant to be free from side ef
This will ensure that the libraries will be properly tree-shaken if they are imported but not directly referenced. This will ensure that the libraries will be properly tree-shaken if they are imported but not directly referenced.
See more details in the original issue [here](https://github.com/angular/angular-cli/issues/16799#issuecomment-580912090). See more details in the original issue [here](https://github.com/angular/angular-cli/issues/16799#issuecomment-580912090).
1. Projects not using Angular CLI will see a significant size regression unless they update their minifier settings and set compile-time constants `ngDevMode`, `ngI18nClosureMode` and `ngJitMode` to `false` (for Terser, please set these to `false` via [`global_defs` config option](https://terser.org/docs/api-reference.html#conditional-compilation)).
Please note that these constants are not meant to be used by 3rd party library or application code as they are not part of our public api surface and might change in the future.
{@a common-changes} {@a common-changes}
### Changes you may see ### Changes you may see