Skip to content
Permalink
Browse files

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
  • Loading branch information...
IgorMinar authored and mhevery committed Mar 15, 2018
1 parent 0ebd577 commit 44de10e2dba6a3bb7c766c194f6b5bf96aa19d10
@@ -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
}
@@ -20,5 +20,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -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
}
@@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -17,5 +17,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -21,5 +21,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -13,5 +13,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -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
}
@@ -21,5 +21,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -27,5 +27,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -24,5 +24,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -22,5 +22,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -31,5 +31,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -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
}
@@ -24,5 +24,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -23,5 +23,6 @@
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
},
"sideEffects": false
}
@@ -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
}

0 comments on commit 44de10e

Please sign in to comment.
You can’t perform that action at this time.