babel /babel

🐠 Babel is a compiler for writing next generation JavaScript.

★ 44,062⑂ 6,013👁 794⑃ 8,539● 9,179▤ 483
TypeScriptMITCreated 2014-09-28babel.dev
下载:v8.1.2v8.1.2 ↓8.1.22026-11-11
+0
日增长
+6
周增长
44,062
stars
6,013
forks
794
watchers
8,539
prs
9,179
issues
483
releases

README

The compiler for writing next generation JavaScript.



    


  
  
  


  


Supporting Babel


  
  
  


Babel (pronounced "babble")  is a community-driven project used by many companies and projects, and is maintained by a group of volunteers. If you'd like to help support the future of the project, please consider:

- Giving developer time on the project. (Message us on Twitter or Slack for guidance!)
- Giving funds by becoming a sponsor on Open Collective or GitHub (which goes to our Open Collective account)!

 Sponsors

Our top sponsors are shown below! [Become a sponsor]

















 Intro

Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain features natively, Babel will help you compile those features down to a supported version.

In

js
// ES2020 nullish coalescing
function greet(input) {
  return input ?? "Hello world";
}


Out

js
function greet(input) {
  return input != null ? input : "Hello world";
}


Try it out at our REPL.

 FAQ

 Who maintains Babel?

Mostly a handful of volunteers, funded by you! Please check out our team page!

 Is there a Babel song?

I'm so glad you asked: Hallelujah —— In Praise of Babel by @angus-c, audio version by @swyx. Tweet us your recordings!

 Looking for support?

For questions and support please join or open a GitHub Discussion, join our Slack Community (you can sign up here for an invite), ask a question on Stack Overflow, or ping us on Bluesky.

 Where are the docs?

Check out our website: babeljs.io, and report issues/features at babel/website.

 Want to report a bug or request a feature?

Please read through our CONTRIBUTING.md and fill out the issue template at babel/issues!

 Want to contribute to Babel?

Check out:

- Our development Slack channel and say hi! (sign-up)
- Issues with the good first issue and help wanted label. We suggest also looking at the closed ones to get a sense of the kinds of issues you can tackle.

Some resources:

- Our CONTRIBUTING.md to get started with setting up the repo.
- Our discussions/notes/roadmap: babel/notes
- Our progress on TC39 proposals: babel/proposals
- Our blog which contains release posts and explanations: /blog
- Our videos page with talks about open source and Babel: /videos
- Our podcast

 How is the repo structured?

The Babel repo is managed as a monorepo that is composed of many npm packages.

 License

MIT

Top issues

Discussions

Latest release

v8.1.2 v8.1.2 2026-11-11
v8.1.2 (2026-11-11)

 :eyeglasses: Spec Compliance
 babel-parser
   18536 fix(parser): require ( after import.{source,defer,sync} (@JLHwung)
 babel-plugin-transform-regenerator, babel-plugin-transform-runtime
   18489 fix(regenerator): read the method of a member call before its arguments (@joellemd)

 :bug: Bug Fix
 babel-helper-module-transforms, babel-plugin-transform-dynamic-import, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd
   18589 Respect importInterop: none for dynamic import (@nicolo-ribaudo)
 babel-parser

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON