Closed iamakulov closed 6 years ago
This optimization is indeed possible for a lot of libs that split components into their own files (which should be common in React env).
For example not only react-bootstrap
, but reactstrap
too.
While looking at the source, it seems like this optimization should still apply to v4. So I've went ahead and added it in #1 :)
While looking at the source, it seems like this optimization should still apply to v4. So I've went ahead and added it in #1 :)
Awesome, thanks!
Closed in #1.
In #1, we’re working on mentioning
babel-plugin-transform-imports
which can replace a full library import with imports of specific library parts.Turns out, this optimization is also applicable to
react-router
v3: https://github.com/ReactTraining/react-router/blob/v3/docs/guides/MinimizingBundleSize.md. We need to:react-router
describing this optimizationContributions are welcome :–)