It looks like Webpack 2 will have support for tree-shaking:
<a href="https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;pull&#x2F;861#issuecomment-149997270" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;pull&#x2F;861#issuecomment-149...</a><p>There&#x27;s also rollup.js (another module bundler) that supports tree-shaking: <a href="http:&#x2F;&#x2F;rollupjs.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rollupjs.org&#x2F;</a><p>Either way, it seems like the code needs to be using ES6 modules to make it all work.