You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to support the current use of selective imports with descructuring import { foo } from 'lib' without taking a bundle weight hit. Let's see how much work it'd be to upgrade to webpack 2 and enable tree shaking (and how much size savings this would give us).
The text was updated successfully, but these errors were encountered:
@boygirl and @coopy know more about this than I do, but we have audited and will continue to audit our bundles to make sure we have either (1) a plugin that tree shakes (like lodash) or (2) manually ensure that we do one-off imports and never have an import with unused exports. We check things with tools like https://github.com/FormidableLabs/inspectpack#parse which can detect multiple es5 / cjs and es-next-style multiple re-exports (the anti-pattern tree-shaking addresses).
I'd like to support the current use of selective imports with descructuring
import { foo } from 'lib'
without taking a bundle weight hit. Let's see how much work it'd be to upgrade to webpack 2 and enable tree shaking (and how much size savings this would give us).The text was updated successfully, but these errors were encountered: