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

Use @cspotcode/source-map-support in @babel/register #16005

Merged
merged 7 commits into from
Dec 11, 2023

Conversation

liuxingbaoyu
Copy link
Member

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

Now we no longer need this test since @babel/core no longer depends on it.

@liuxingbaoyu liuxingbaoyu added the PR: Polish (next major) 💅 A type of pull request used for our changelog categories for next major release label Sep 27, 2023
@babel-bot
Copy link
Collaborator

babel-bot commented Sep 27, 2023

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

import { fileURLToPath } from "url";

describe("browserify", function () {
it("@babel/register may be used without breaking browserify", function () {
Copy link
Member

Choose a reason for hiding this comment

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

Can you elaborate more on why this test is not needed anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

The reason why this test was added is that @babel/core previously depended on @babel/register, and we hope that @babel/core can be used in the browser through browserify.
Now that it is no longer relied on, @babel/register itself does not need to be ensured to run in the browser.

Copy link
Member

Choose a reason for hiding this comment

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

Ok thanks! Could we keep it for Babel 7?

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I'll leave it as a TODO.

Copy link
Member

Choose a reason for hiding this comment

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

Can also just use itBabel7

@JLHwung JLHwung merged commit 3f9bb7b into babel:main Dec 11, 2023
48 checks passed
@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 Mar 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Polish (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.

4 participants