refactor(ivy): do not generate providedIn: null (#34116)

We should only generate the `providedIn` property in injectable
defs if it has a non-null value. `null` does not communicate
any information to the runtime that isn't communicated already
by the absence of the property.

This should give us some modest code size savings.

PR Close #34116
This commit is contained in:
Kara Erickson
2019-11-27 16:25:47 -08:00
committed by Miško Hevery
parent 396779f6e6
commit 3516213632
4 changed files with 20 additions and 19 deletions

View File

@ -12,7 +12,7 @@
"master": {
"uncompressed": {
"runtime-es2015": 2987,
"main-es2015": 462449,
"main-es2015": 461697,
"polyfills-es2015": 52503
}
}