Content-Length: 298245 | pFad | http://redirect.github.com/babel/babel/pull/16844

C3 Migrate `@babel/register` to cts by liuxingbaoyu · Pull Request #16844 · babel/babel · GitHub
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

Migrate @babel/register to cts #16844

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

liuxingbaoyu
Copy link
Member

@liuxingbaoyu liuxingbaoyu commented Sep 19, 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

Currently there's a mix of const x = require() instead of import x =, because a lot of files will be removed in Babel 8 and it's not worth changing them now.
Unless any reviewer thinks they should be unified :)

@babel-bot
Copy link
Collaborator

babel-bot commented Sep 19, 2024

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

@liuxingbaoyu liuxingbaoyu added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: register labels Sep 19, 2024
@@ -10,11 +9,11 @@ if (major < 12 || (major === 12 && minor < 3)) {
);
}

const hook = require("./hook.js");
const { WorkerClient } = require("./worker-client.js");
const hook = require("./hook.cjs");
Copy link
Member

Choose a reason for hiding this comment

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

Lets use import ... = in this file, since we'll keep it in Babel 8.

scripts/generators/tsconfig.js Outdated Show resolved Hide resolved
scripts/generators/tsconfig.js Outdated Show resolved Hide resolved
liuxingbaoyu and others added 3 commits September 24, 2024 00:46
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: register PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/babel/babel/pull/16844

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy