Webpack: Support tree shaking with import * as identifier from file;

Created on 28 Jun 2016  Â·  3Comments  Â·  Source: webpack/webpack

Over in the purescript repository (purescript/purescript/issues/1206), it seems webpack doesn't support tree-shaking for the import {* syntax. Rollup does. Would it be possible to support this?

Most helpful comment

All 3 comments

Thanks!

On Jun 28, 2016, at 7:29 PM, Tobias Koppers [email protected] wrote:

It's working now...

See example: https://github.com/webpack/webpack/tree/master/examples/harmony-unused#examplejs

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@sokra I tried Webpack 2 against the ongoing THREE.js transformation into modules, which has /Three.js exporting all the modules. The output was still the same as a regular build with Webpack 1. When going through the index manually, cutting out dependencies it decreased in size.

Is there something that i do wrong? The project is here: https://github.com/drcmda/three-modules

Was this page helpful?
0 / 5 - 0 ratings