Some stats experimenting with upgrading from 1.9.2...
# javascript
e
Some stats experimenting with upgrading from 1.9.24 to 2.1.0 and applying compiler flags. Size of one of our compiled (not bundled) .js files, plus the size of two npm packages (only .js files considered, not bundled). Compiled to CommonJS modules, per-module granularity.
Copy code
Single file size    Package A   Package B
1.9.24........................................106 kb....814 kb......1.52 mb
2.1.0.........................................105 kb....808 kb......1.52 mb
2.1.0..........................................93 kb....784 kb......1.43 mb
  -Xes-generators
2.1.0..........................................91 kb....780 kb......1.42 mb
  -Xes-generators
  -Xir-generate-inline-anonymous-functions
2.1.0..........................................90 kb....776 kb......1.41 mb
  -Xes-generators
  -Xir-generate-inline-anonymous-functions
  -Xes-arrow-functions