Closed mydearxym closed 7 years ago
Hi @mydearxym,
yes, importing a single decorator from react-decoration
causes the import of all modules, that increase the bundle size.
At the moment you can avoid this importing each decorator from its full path react-decoration/lib/decorators/{namespace}/{decorator}
Referencing to the doc, in our example, you can do the following
import throttle from 'react-decoration/lib/decorators/functions/throttle';
I can add this information to the doc as soon as possible
@mbasso thanks for the quick reply , this is much better ! thanks !
General Information
Description
i tried react-decoration with react-boilerplate, it's great, but the only issue is bundle size :
before
after
the only different is i use
and the final build size increased about 32kb
i think it import all the decorators ?
Versions