Babel 中文文档
  • 印记中文
  • 文档
  • 配置
  • 试用
  • 视频
  • 博客
  • 赞助
  • 团队
  • GitHub

›All Blog Posts

All Blog Posts

  • 7.19.0 Released: Stage 3 decorators and more RegExp features!
  • 7.18.0 Released: Destructuring private elements and TypeScript 4.7
  • 7.17.0 Released: RegExp 'v' mode and ... 🥁 decorators!
  • 7.16.0 发布: ESLint 8 和 TypeScript 4.5
  • 7.15.0 发布:支持 Hack-style 管道, TypeScript 枚举常量和 Rhino 目标
  • Babel is used by millions, so why are we running out of money?
  • 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop
  • 7.13.0 Released: Records and Tuples, granular compiler assumptions, and top-level targets
  • 7.12.0 Released: TypeScript 4.1, strings as import/export names, and class static blocks
  • 7.11.0 Released: ECMAScript 2021 support in preset-env, TypeScript 4.0 support, printing config and the future of `babel-eslint`
  • The State of babel-eslint
  • 7.10.0 Released: Class Fields in preset-env, '#private in' checks and better React tree-shaking
  • 7.9.0 Released: Smaller preset-env output, Typescript 3.8 support and a new JSX transform
  • 7.8.0 Released: ECMAScript 2020, .mjs configuration files and @babel/cli improvements
  • Babel's Funding Plans
  • 7.7.0 Released: Error recovery and TypeScript 3.7
  • 7.6.0 Released: Private static accessors and V8 intrinsic syntax
  • 7.5.0 Released: dynamic import and F# pipelines
  • The Babel Podcast
  • 7.4.0 Released: core-js 3, static private methods and partial application
  • 7.3.0 Released: Named capturing groups, private instance accessors and smart pipelines
  • 7.2.0 发布:私有实例方法(Private Instance Methods)
  • 在 Babel 中支持 TC39 标准的装饰器
  • 7.1.0 Released: Decorators, Private Static Fields
  • Babel 7 发布
  • Removing Babel's Stage Presets
  • What's Happening With the Pipeline (|>) Proposal?
  • Announcing Babel's New Partnership with trivago!
  • On Consuming (and Publishing) ES2015+ Packages
  • Nearing the 7.0 Release
  • Babel Turns Three
  • Planning for 7.0
  • Zero-config code transformation with babel-plugin-macros
  • Contributing to Babel: Three Lessons to Remember
  • Personal Experiences at Babel #1 — A PR with Unusually High Number of Reviews
  • Babel and Summer of Code 2017
  • Upgrade to Babel 7 (moved)
  • Upgrade to Babel 7 for Tool Authors (WIP)
  • 6.23.0 Released
  • The State of Babel
  • 6.19.0 Released
  • 6.18.0 Released
  • 6.16.0 Released
  • Babili (babel-minify)
  • 6.14.0 Released
  • Babel Doctor
  • Setting up Babel 6
  • 6.0.0 Released
  • React on ES6+
  • Function Bind Syntax
  • 5.0.0 Released
  • Babel 喜爱 React
  • 并非出生而逐渐走向灭亡
  • 2to3
  • 6to5 + esnext

并非出生而逐渐走向灭亡

February 15, 2015

James Kyle

我想从 6to5 最新重大事件发生后都开始写博客文章。虽然还没有发生重大事件,不过这几天的时间,6to5 和 6to5-core 已经被下载五十万次,并且在一个月时间内将会超过一百万次。

过去,对于 6to5 在 JavaScript 社区中的所处角色存在一些混淆,这在很大程度上是由于它的名称产生的误解导致。

但是 6to5 并非出生而逐渐走向灭亡。

即使所有环境都开始支持 JavaScript 的下代版本,6to5 中的工作仍将继续在社区中发挥着重要作用。

这是因为,从压缩工具(minifier)到美化工具(beautifier)、从代码检查工具(linter)到代码覆盖工具(code coverage instrumentor)、可编译到 JavaScript 的语言和语法扩展、代码高亮等这些功能来看,几乎任何编程语言的任何工具都相当重度地依赖于两件事:解析器(parser)和转译器(transpiler)。

在 JavaScript 中这些工具的历史很长、情况也很难受。每个人都在不断地重新实现相同的东西,造成了绝对的混乱。这也是新的语言特性花费很长时间推出的首要原因(比如“我喜欢使用箭头函数,但是它会破坏我们的代码覆盖率”)。

幸运的是,目前有很多人正在做的工作会改善这一点。

最近,来自 Mozilla, Esprima, jQuery 基金会, Acorn, 6to5, ESLint 和其他组织的许多人聚集在一起,共同创建了 ESTree,这是一个标准,所有解析器和转移器工具都将基于此标准。

我们希望 6to5 能够解决转译需求。如果社区可以整合围绕在一个能够提供坚实基础的工具,来处理大量共同的问题,那么我们将会变得更好。

这可能听起来有点荒谬,像是一个相当崇高的目标。很多人会认为这超出了 “6to5” 的范围。

所以,我想此时重新命名这个项目是个好的想法!

6to5 现在重生为 Babel。

Babel 将继续作为使用最新标准的 JavaScript 转移器,但也将开始为其他工具开放其 API。任何在内部参与该项目的人,都知道 Babel 非常易用。

我们对未来感到异常兴奋,我们希望我们能够对 JavaScript 社区产生更大的影响。

总是押注 JavaScript(always bet on JavaScript)。

— 来自当前的 Babel 团队

Recent Posts
Babel 中文文档
文档
学习 ES2015
社区
视频用户Stack OverflowSlack 频道Twitter
更多
博客GitHub 组织GitHub 仓库Website 仓库旧版网址 6.x旧版网址 5.x