Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tree shaking with import * as identifier from file; #2713

Closed
wegry opened this issue Jun 28, 2016 · 3 comments
Closed

Support tree shaking with import * as identifier from file; #2713

wegry opened this issue Jun 28, 2016 · 3 comments

Comments

@wegry
Copy link

wegry commented Jun 28, 2016

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?

@wegry wegry changed the title Support tree shaking with import {* as identifier} from file; Support tree shaking with import * as identifier from file; Jun 28, 2016
@sokra sokra closed this as completed in 78307a9 Jun 28, 2016
@sokra
Copy link
Member

sokra commented Jun 28, 2016

It's working now...

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

@wegry
Copy link
Author

wegry commented Jun 28, 2016

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.

@drcmda
Copy link

drcmda commented Jul 12, 2016

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants