question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 2 RC 4 Rxjs Bundles

See original GitHub issue

I’m submitting a … (check one with “x”)

[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior While bootstraping the application, I see system is loading individual rxjs files. (100+ calls)

Expected/desired behavior Shouldn’t it load RXJS bundle same like other angular libraries? rxjs calls

Reproduction of the problem If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 2.0.0-rc.4 rxjs calls
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
fknopcommented, Jul 10, 2016

I think it’s up to you to bundle your application as you wish.

2reactions
robwormaldcommented, Jul 10, 2016

Not all of us have the time to invest in the labyrinth-themed maze that is package bundling just to achieve decent loading times in Angular 2.

For what its worth, the reason we don’t bundle Rx for you is to not bring in 300KB+ of extra dependencies you may not need, which would of course increase your loading time.

This is non-trivial to solve to keep everyone happy, because like many things in angular2, we are optimizing for the future. Bundling is not going away and we will continue to optimize for the case that allows for smaller package sizes.

RxJS does currently ship a SystemJS bundle, it’s the /bundles/Rx.js file, which would give you all of the dependencies angular needs as well as the entire Rx library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Rxjs umd bundles - angular - Stack Overflow
It is now possible to ship a small number of UMD or FESM bundles, one for each of the handful of imports (rxjs,...
Read more >
Starting an Angular 2 RC.5 project - Yakov Fain
The Angular modules will be loaded according to the SystemJS configuration file systemjs.config.js. Note the commented out script tag for Rx.js.
Read more >
Upgrading from AngularJS to Angular
Correspondingly, when you upgrade an AngularJS component and use it from Angular, all the bindings defined for scope (or bindToController ) of the...
Read more >
How To Update Angular CLI To Latest Version
Once all of your dependencies have updated to latest RxJS 6, remove rxjs-compat package as it increases bundle size. npm uninstall rxjs-compat ...
Read more >
Angular 2 with Webpack - DotNetCurry.com
This bundle can include JavaScript, HTML, CSS and other type of files. Following are some goals of the WebPack: Best suited for big...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found