Babel 7.8.0 发布,JavaScript 编译器

Babel 7.8.0 发布了,Babel 是用于编写下一代 JavaScript 的编译器。

主要更新内容:

新特性

  • babel-standalone
    • #10821 将 env-standalone 合并为 babel-standalone
  • babel-core
    • #10783 添加 babelrc.json 支持
    • #10903 添加对 babel.config.mjs 和 .babelrc.mjs 的支持
  • babel-compat-datababel-preset-env-standalonebabel-preset-env
    • #10811 将可选链接和无效合并添加到预设环境
  • babel-helper-module-transformsbabel-plugin-transform-modules-systemjs
    • #10780 添加 allowTopLevel 选项到 transform-modules-systemjs
  • babel-parser
    • #10817 默认情况下在 @babel/parser 中启用可选链接
  • babel-cli
    • #10887 --copy-ignored 标志已添加到 CLI
    • #9144 在 babel-cli 中添加 --out-file-extension 选项
  • babel-corebabel-generatorbabel-parser
    • #10819 默认情况下在 @babel/parser 中启用空合并
  • babel-corebabel-parser
    • #10843 [parser] 默认启用动态导入

此外还有 bug 修复等内容,详情见更新说明:

https://github.com/babel/babel/releases/tag/v7.8.0

猜你喜欢

转载自www.oschina.net/news/112797/babel-7-8-0-released