Skip to content

Make type checking faster#18042

Open
liuxingbaoyu wants to merge 2 commits into
babel:mainfrom
liuxingbaoyu:faster-type
Open

Make type checking faster#18042
liuxingbaoyu wants to merge 2 commits into
babel:mainfrom
liuxingbaoyu:faster-type

Conversation

@liuxingbaoyu
Copy link
Copy Markdown
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

This reduced the time for yarn tsc -b --extendedDiagnostics from 55 seconds to 44 seconds without caching.

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jun 1, 2026

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 1, 2026

Open in StackBlitz

commit: d125137

nodes_: Nodes,
): NodePaths<Nodes> {
nodes_: Node | Node[],
): NodePath<Node>[] {
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung Jun 2, 2026

Choose a reason for hiding this comment

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

Could you add a tst test for the insertBefore, for example,

const [p1, p2] = path.insertBefore([t.identifier("foo"), t.nullLiteral()])

the type of p1 should be NodePath<t.Identifier> and p2 should be NodePath<t.NullLiteral>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants