Skip to content

fix(zone.js): fix wrongly bundle rxjs.#35983

Closed
JiaLiPassion wants to merge 1 commit intoangular:masterfrom
JiaLiPassion:zone-rxjs-bundle
Closed

fix(zone.js): fix wrongly bundle rxjs.#35983
JiaLiPassion wants to merge 1 commit intoangular:masterfrom
JiaLiPassion:zone-rxjs-bundle

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Contributor

@JiaLiPassion JiaLiPassion commented Mar 10, 2020

Close #35878.

Before zone.js 0.10, the rollup config when bundling zone-patch-rxjs.js defines
rxjs library into externs and globals configurations, so rollup will not bundle
rxjs source code into zone-patch-rxjs.js bundle.

From zone.js 0.10, we use bazel to build zone.js and the externals and globals configurations
are not correct, so the final bundle of zone-patch-rxjs is not correct. The source code of rxjs is also bundled, https://unpkg.com/[email protected]/dist/zone-patch-rxjs.js

this PR recover the old rollup configurations. So the zone-patch-rxjs.js will only include the
source code from zone.js.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

@JiaLiPassion JiaLiPassion requested a review from mhevery March 10, 2020 04:49
@JiaLiPassion JiaLiPassion added the area: zones Issues related to zone.js label Mar 10, 2020
@ngbot ngbot Bot added this to the needsTriage milestone Mar 10, 2020
@JiaLiPassion JiaLiPassion added the target: patch This PR is targeted for the next patch release label Mar 10, 2020
Copy link
Copy Markdown
Contributor

@mhevery mhevery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please clean up the comment:

fix(zone.js): fix `rxjs-patch` bundle to refer to `rxjs` (rather than include) it.

Close #35878.

Before zone.js 0.10, the rollup config would refer to `rxjs` when bundling `zone-patch-rxjs.js`
From zone.js 0.10, we started to use bazel to build `zone-patch-rxjs.js` and the configuration was wrongly defined to include a copy of `rxjs` in the `zone-patch-rxjs.js`.

Please verify that my comment make sense and it is consistent with what you are actually changing. (As I am only guessing here)

@mhevery mhevery added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker labels Mar 10, 2020
@JiaLiPassion JiaLiPassion removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 10, 2020
@JiaLiPassion
Copy link
Copy Markdown
Contributor Author

@mhevery, thank you and I updated the commit message.

… than include) it.

Close angular#35878.

Before zone.js 0.10, the rollup config would refer to `rxjs` when bundling `zone-patch-rxjs.js`
From zone.js 0.10, we started to use bazel to build `zone-patch-rxjs.js` and the configuration was wrongly defined to include a copy of `rxjs` in the `zone-patch-rxjs.js`.
AndrewKushnir pushed a commit that referenced this pull request Mar 11, 2020
… than include) it. (#35983)

Close #35878.

Before zone.js 0.10, the rollup config would refer to `rxjs` when bundling `zone-patch-rxjs.js`
From zone.js 0.10, we started to use bazel to build `zone-patch-rxjs.js` and the configuration was wrongly defined to include a copy of `rxjs` in the `zone-patch-rxjs.js`.

PR Close #35983
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Apr 11, 2020
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 area: zones Issues related to zone.js cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zone-patch-rxjs no longer work with Zone.js 0.10.0

3 participants