Smaller production builds

Builds on the exclusion of PropTypes from production builds:

- Remove 'lodash' and use smaller modules for equivalent functions.
- Remove use of some unnecessary Facebook utilities.
- Remove 'TouchableBounce'; it isn't part of React Native anymore.
- Remove stray import of 'react-dom/server'.
- Exclude 'StyleSheetValidation' from production.

Measuring the UMD build (gzip)…

Before: ~100KB
After: ~60KB
This commit is contained in:
Nicolas Gallagher
2016-11-22 16:25:58 -08:00
parent d65c92eea9
commit 722d77e8e5
21 changed files with 74 additions and 440 deletions
+3 -1
View File
@@ -19,11 +19,13 @@
},
"dependencies": {
"animated": "^0.1.3",
"array-find-index": "^1.0.2",
"babel-plugin-transform-react-remove-prop-types": "^0.2.11",
"babel-runtime": "^6.11.6",
"debounce": "^1.0.0",
"deep-assign": "^2.0.0",
"fbjs": "^0.8.4",
"inline-style-prefixer": "^2.0.1",
"lodash": "^4.15.0",
"react-dom": "~15.3.2",
"react-textarea-autosize": "^4.0.4",
"react-timer-mixin": "^0.13.3",