feat: mark angular packages as side-effect free (#22785)

This flag is picked up by webpack v4 and used for more agressive optimizations.

Our code is already side-effect free, because that's what we needed for build-optimizer to work.

PR Close #22785
This commit is contained in:
Igor Minar 2018-03-14 18:30:18 -07:00 committed by Miško Hevery
parent 0ebd577db4
commit 44de10e2db
20 changed files with 40 additions and 20 deletions

View File

@ -3,5 +3,6 @@
"typings": "./browser.d.ts",
"main": "../bundles/animations-browser.umd.js",
"module": "../esm5/browser.js",
"es2015": "../esm2015/browser.js"
"es2015": "../esm2015/browser.js",
"sideEffects": false
}

View File

@ -20,5 +20,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -3,5 +3,6 @@
"typings": "./http.d.ts",
"main": "../bundles/common-http.umd.js",
"module": "../esm5/http.js",
"es2015": "../esm2015/http.js"
"es2015": "../esm2015/http.js",
"sideEffects": false
}

View File

@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -17,5 +17,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -21,5 +21,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -13,5 +13,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -3,5 +3,6 @@
"typings": "./animations.d.ts",
"main": "../bundles/platform-browser-animations.umd.js",
"module": "../esm5/animations.js",
"es2015": "../esm2015/animations.js"
"es2015": "../esm2015/animations.js",
"sideEffects": false
}

View File

@ -21,5 +21,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -27,5 +27,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -24,5 +24,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -31,5 +31,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -3,5 +3,6 @@
"typings": "./upgrade.d.ts",
"main": "../bundles/router-upgrade.umd.js",
"module": "../esm5/upgrade.js",
"es2015": "../esm2015/upgrade.js"
"es2015": "../esm2015/upgrade.js",
"sideEffects": false
}

View File

@ -24,5 +24,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}

View File

@ -3,5 +3,6 @@
"typings": "./static.d.ts",
"main": "../bundles/upgrade-static.umd.js",
"module": "../esm5/static.js",
"es2015": "../esm2015/static.js"
"es2015": "../esm2015/static.js",
"sideEffects": false
}