Skip to content

Always use native Node.js TS support for config files#17970

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:always-native-nodejs-ts-support
May 25, 2026
Merged

Always use native Node.js TS support for config files#17970
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:always-native-nodejs-ts-support

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented May 1, 2026

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 Docs: babel/website#3207
Any Dependency Changes?
License MIT

Follow up to #17969.

@nicolo-ribaudo nicolo-ribaudo added the PR: Internal 🏠 A type of pull request used for our changelog categories label May 1, 2026
@babel-bot

babel-bot commented May 1, 2026

Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new

pkg-pr-new Bot commented May 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 917c385

@nicolo-ribaudo nicolo-ribaudo force-pushed the always-native-nodejs-ts-support branch from 572f0ed to 0031df9 Compare May 4, 2026 14:38
@nicolo-ribaudo nicolo-ribaudo force-pushed the always-native-nodejs-ts-support branch from 0031df9 to 917c385 Compare May 4, 2026 14:58
@nicolo-ribaudo

Copy link
Copy Markdown
Member Author

What type of docs do you think this needs? It should not be observable to users, since on all the Node.js versions now supported by Babel 8 we use already the native TS support.

@JLHwung

JLHwung commented May 6, 2026

Copy link
Copy Markdown
Contributor

What type of docs do you think this needs? It should not be observable to users, since on all the Node.js versions now supported by Babel 8 we use already the native TS support.

We should probably update this section for both Babel 7 and Babel 8: https://babel.dev/docs/config-files#supported-file-extensions, that babel.config.cts does not require preset-typescript or ts-node (only required for old Node + Babel 7). And we now also support babel.config.ts.

@nicolo-ribaudo nicolo-ribaudo merged commit 4493983 into babel:main May 25, 2026
55 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the always-native-nodejs-ts-support branch May 25, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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