Skip to content

chore(ci): block import of entire rxjs library #625

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

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

jelbourn
Copy link
Member

@jelbourn jelbourn commented Jun 3, 2016

R: @hansl @kara

Thanks to @devversion for making me realize we need a check for this.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 3, 2016
@jelbourn jelbourn changed the title chore: block import of entire rxjs library chore(ci): block import of entire rxjs library Jun 3, 2016
@hansl
Copy link
Contributor

hansl commented Jun 3, 2016

Can you elaborate? Is it because you want tree shaking?

@jelbourn
Copy link
Member Author

jelbourn commented Jun 3, 2016

@hansl Effectively; all of the imports for rxjs should be for the specific parts you want. If you do rxjs/Rx, it brings in the entire library. See icon.ts, for example, which does:

import {Observable} from 'rxjs/Observable';
import 'rxjs/add/observable/forkJoin';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/share';
import 'rxjs/add/operator/finally';
import 'rxjs/add/operator/catch';

See #431

@hansl
Copy link
Contributor

hansl commented Jun 3, 2016

LGTM

@hansl
Copy link
Contributor

hansl commented Jun 3, 2016

Thank you for context.

@jelbourn jelbourn merged commit 7419a12 into angular:master Jun 3, 2016
@jelbourn jelbourn deleted the block-rx-import branch September 13, 2017 04:36
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants