Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(traverse): provide a hub when traversing a File or Program and no parentPath is given#17708

Merged
nicolo-ribaudo merged 1 commit into
babel:7.xfrom
simbahax:7.x
Jan 28, 2026
Merged

fix(traverse): provide a hub when traversing a File or Program and no parentPath is given#17708
nicolo-ribaudo merged 1 commit into
babel:7.xfrom
simbahax:7.x

Conversation

@simbahax
Copy link
Copy Markdown
Contributor

As discussed: :)

Does this PR need to be included in Babel 7? If so, @simbahax would you mind opening a PR cherry-picking the commit (30af57a) to the 7.x branch? Thank you!

Originally posted by @nicolo-ribaudo in #17672 (comment)


Q                       A
Fixed Issues? Fixes #11350
Patch: Bug Fix? Yes
Major: Breaking Change? No
Minor: New Feature? No
Tests Added + Pass? No (will fix the remaining issues in the following days and track them here)
Documentation PR Link N/A
Any Dependency Changes? No
License MIT

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jan 12, 2026

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/60722

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories 7.x: backport labels Jan 16, 2026
@nicolo-ribaudo nicolo-ribaudo changed the title fix(babel-traverse): backport "automatically provide a hub when traversing a File or Program and no parentPath is given" fix(traverse): provide a hub when traversing a File or Program and no parentPath is given Jan 16, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 23, 2026

Open in StackBlitz

commit: 33617a7

@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review January 28, 2026 18:11
@nicolo-ribaudo nicolo-ribaudo merged commit 84366a8 into babel:7.x Jan 28, 2026
65 checks passed
@vzaidman
Copy link
Copy Markdown

vzaidman commented Feb 9, 2026

This fixes #6437, #15725 in Babel 7.x

facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
Summary:
[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue.

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Differential Revision: D92710292
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
Summary:
[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292
vzaidman added a commit to facebook/metro that referenced this pull request Feb 9, 2026
Summary:
[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
…1650)

Summary:

[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
…1650)

Summary:

[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
…1650)

Summary:

[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292
meta-codesync Bot pushed a commit to facebook/metro that referenced this pull request Feb 9, 2026
…1650)

Summary:
Pull Request resolved: #1650

[#17708](babel/babel#17708) fixes the longstanding `babel/traverse` pollution issue in [v7.29.0](https://github.com/babel/babel/releases/tag/v7.29.0).

This diff opts-out of the workaround if the version of traverse is above the version where it was fixed.

Changelog: Internal

Reviewed By: robhogan

Differential Revision: D92710292

fbshipit-source-id: 6b202c001cdf5d2ec02c81c3e9f280752d83c998
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 12, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

7.x: backport outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: traverse PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants