Webpack bundle size with RxJS operators


Hello there!

Since I started working with Webpack I have many issues regarding the bundles size.

I have sorted out the AOT compilation and apparently it’s working fine after making some changes in the Webpack config file. However, after fighting with RxJS, the operators folder is fully imported and it takes almost 500KB of the total size (1,52MB).

I’m using RxJS 5.5.x and importing each operator individually:

  • import { map } from ‘rxjs/operators/map’;

Therefore, the operators I’m not using should be out of the bundle and not be imported.

I would appreciate if you could give me some hints or any solution you might have found regarding this topic and also about NativeScript performance and reduce the bundle size / initial app loading.

Thank you in advance