Skip to content
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

chore: Helper changes for Babel 8 #16209

Merged
merged 2 commits into from Jan 31, 2024
Merged

Conversation

liuxingbaoyu
Copy link
Member

@liuxingbaoyu liuxingbaoyu commented Jan 10, 2024

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

The only change is that we no longer access node._loc.
To be honest, just removing these two methods is fine for me too.

@babel-bot
Copy link
Collaborator

babel-bot commented Jan 10, 2024

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

"alongside 'file.availableHelper()'.",
);
if (!process.env.BABEL_8_BREAKING) {
if (key === "helpersNamespace") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for reminding!
This is a special case. :)

function pluginToggleBooleanFlag({ types: t }, { name, value }) {

We use a custom plugin to remove it on release.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, since #15961 the custom plugin should support doing

if (!process.env.BABEL_8_BREAKING && key === "helpersNamespace") {

:)

@liuxingbaoyu liuxingbaoyu added the PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release label Jan 12, 2024
@liuxingbaoyu liuxingbaoyu changed the title chore: Helpers changes for Babel 8 chore: Helper changes for Babel 8 Jan 12, 2024
@nicolo-ribaudo nicolo-ribaudo merged commit ee7ef0b into babel:main Jan 31, 2024
49 checks passed
liuxingbaoyu added a commit to liuxingbaoyu/babel that referenced this pull request Mar 5, 2024
@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 2, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: helpers outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants