Skip to content

Remove index-legacy.d.ts - #18615

Merged
nicolo-ribaudo merged 1 commit into
mainfrom
jlhwung/remove-types-index-legacy.d.ts
Nov 16, 2026
Merged

nicolo-ribaudo merged 1 commit into
mainfrom
jlhwung/remove-types-index-legacy.d.ts

Conversation

@JLHwung

@JLHwung JLHwung commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
Need backport? No
License MIT

In Babel 7, typesVersions pointed TypeScript < 4.1 to this file. In Babel 8 we have removed that mapping, so nothing resolves to the file anymore, but it was still generated before publishing and included in the final published bundle. In this PR we remove it from the published bundle and clean up the generate step.

Assisted-by: Claude Fable 5.2

In Babel 7, `typesVersions` pointed TypeScript < 4.1 to this file. Babel 8
removed that mapping, so nothing resolves to the file anymore, but it was
still generated before publishing: 170,980 bytes in every install.

Assisted-by: Claude Fable 5.2
@JLHwung JLHwung added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: types labels Nov 14, 2026
@babel-bot

Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: c6fc6f6

@JLHwung
JLHwung added this pull request to stack #18619 November 14, 2026 14:15
@nicolo-ribaudo
nicolo-ribaudo added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 90bef63 Nov 16, 2026
61 checks passed
@nicolo-ribaudo
nicolo-ribaudo deleted the jlhwung/remove-types-index-legacy.d.ts branch November 16, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: types 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.

4 participants