Riron / ionic-img-viewer

Ionic 2+ component providing a Twitter inspired experience to visualize pictures.
MIT License
283 stars 118 forks source link

Fix rxjs imports for better treeshaking #105

Closed MarkChrisLevy closed 6 years ago

MarkChrisLevy commented 6 years ago

When importing from "rxjs/operators" webpack tree-shaking is not working (by default) properly. Better to import modules for specific methods. Read more: https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#build-and-treeshaking

So with default webpack configuration, all rxjs package is included in the bundle...