3 ms·
It is a mistake. Index.js re-exports cannot be tree-shaken by bundlers unless the module is explicitly declared free of side effects. If you import { foo } you
by eurasiantiger 5y ago
It is a mistake. Index.js re-exports cannot be tree-shaken by bundlers unless the module is explicitly declared free of side effects.
If you import { foo } you actually import everything. Check your bundle.