docs(ivy): add a not about compile-time constants to the ivy compatibility guide (#35194)
PR Close #35194
This commit is contained in:
parent
053dabb7ed
commit
86db592b5c
|
@ -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.
|
||||
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}
|
||||
### Changes you may see
|
||||
|
|
Loading…
Reference in New Issue