Skip to content

fix(zone.js): don't rely on global node typings outside of node/ dire…#31783

Closed
alexeagle wants to merge 1 commit intoangular:masterfrom
alexeagle:zone_sync
Closed

fix(zone.js): don't rely on global node typings outside of node/ dire…#31783
alexeagle wants to merge 1 commit intoangular:masterfrom
alexeagle:zone_sync

Conversation

@alexeagle
Copy link
Copy Markdown
Contributor

…ctory

@alexeagle alexeagle requested review from a team and JiaLiPassion July 22, 2019 18:10
@alexeagle alexeagle force-pushed the zone_sync branch 2 times, most recently from 19dfca7 to 4f66c64 Compare July 22, 2019 18:15
@alexeagle
Copy link
Copy Markdown
Contributor Author

Note: this is required to switch google3 to point at this new location of zone.js sources

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it seems there is an additional space at the end of this comment which will fail the tslint.

Comment thread packages/zone.js/lib/zone.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No we don't need to - that isn't on the critical path to fix the compilation in g3. We could do more changes later...

@mhevery mhevery added the area: zones Issues related to zone.js label Jul 25, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Jul 25, 2019
// This code should run in a Browser, so we don't want to include the whole node.d.ts
// typings for this compilation unit.
// We'll just fake the global "global" var for now.
declare var global: NodeJS.Global;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

note, in g3 there is a transformation to replace NodeJS.Global with {} since this file is compiled without node typings in g3

@alexeagle alexeagle added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Jul 30, 2019
sabeersulaiman pushed a commit to sabeersulaiman/angular that referenced this pull request Sep 6, 2019
@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 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 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.

4 participants