Skip to content

fix(ivy): remove debug utilities from ivy production builds #30130

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

Closed
wants to merge 1 commit into from

Conversation

kara
Copy link
Contributor

@kara kara commented Apr 25, 2019

Prior to this commit, we were pulling DebugNode and DebugElement
into production builds because BrowserModule automatically pulled
in NgProbe and thus getDebugNode. In Ivy, this is not necessary
because Ivy has its own set of debug utilities. We should use these
existing tools instead of NgProbe.

This commit adds an Ivy switch so we do not pull in NgProbe utilities
when running with Ivy. This saves us ~8KB in prod builds.

Note: Master is red for unrelated size regressions :-(

@kara kara force-pushed the tree-shaking branch 4 times, most recently from 800c0dd to 383c823 Compare April 26, 2019 00:02
@kara kara changed the title Test PR fix(ivy): remove debug utilities from ivy production builds Apr 26, 2019
@kara kara force-pushed the tree-shaking branch 7 times, most recently from b10aca4 to 73ac93f Compare April 26, 2019 00:52
@kara kara marked this pull request as ready for review April 26, 2019 06:28
@kara kara requested review from a team as code owners April 26, 2019 06:28
Prior to this commit, we were pulling DebugNode and DebugElement
into production builds because BrowserModule automatically pulled
in NgProbe and thus getDebugNode. In Ivy, this is not necessary
because Ivy has its own set of debug utilities. We should use these
existing tools instead of NgProbe.

This commit adds an Ivy switch so we do not pull in NgProbe utilities
when running with Ivy. This saves us ~8KB in prod builds.
@kara kara added comp: ivy target: patch This PR is targeted for the next patch release risk: medium labels Apr 26, 2019
@ngbot ngbot bot added this to the needsTriage milestone Apr 26, 2019
@kara kara added risk: low action: merge The PR is ready for merge by the caretaker and removed risk: medium labels Apr 26, 2019
@kara
Copy link
Contributor Author

kara commented Apr 26, 2019

presubmit

@kara kara added action: presubmit The PR is in need of a google3 presubmit and removed action: presubmit The PR is in need of a google3 presubmit labels Apr 26, 2019
@IgorMinar IgorMinar modified the milestones: needsTriage, version 8 Apr 26, 2019
AndrewKushnir pushed a commit that referenced this pull request Apr 26, 2019
Prior to this commit, we were pulling DebugNode and DebugElement
into production builds because BrowserModule automatically pulled
in NgProbe and thus getDebugNode. In Ivy, this is not necessary
because Ivy has its own set of debug utilities. We should use these
existing tools instead of NgProbe.

This commit adds an Ivy switch so we do not pull in NgProbe utilities
when running with Ivy. This saves us ~8KB in prod builds.

PR Close #30130
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…30130)

Prior to this commit, we were pulling DebugNode and DebugElement
into production builds because BrowserModule automatically pulled
in NgProbe and thus getDebugNode. In Ivy, this is not necessary
because Ivy has its own set of debug utilities. We should use these
existing tools instead of NgProbe.

This commit adds an Ivy switch so we do not pull in NgProbe utilities
when running with Ivy. This saves us ~8KB in prod builds.

PR Close angular#30130
@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 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes risk: low target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants