7.13.0 发布:记录和元组、细粒度编译器假设,以及顶层目标
我们刚刚发布了 Babel 7.13.0,这是 2021 年的第一个小版本更新!
🌐 We just published Babel 7.13.0, the first minor release of 2021!
这个版本为 @babel/core 增加了一些重要功能:一个可以在不同插件之间共享的 targets 选项(类似于 @babel/preset-env 的选项)、一个 assumptions 选项,用于精确调整你的配置以生成更小的编译输出,以及对使用原生 ECMAScript 模块编写的插件和预设的支持。
🌐 This release includes some important features to @babel/core: a targets option (similar to @babel/preset-env's one) that can be shared across different plugins, an assumptions option to precisely tune your configuration to produce a smaller compilation output, and support for plugins and presets written using native ECMAScript modules.
Babel 现在支持转换 Records 和 Tuples ECMAScript 提案,这个提案为 JavaScript 带来了不可变数据结构和结构化相等性,同时也支持解析 Module Blocks 提案。
🌐 Babel now supports transforming the Records and Tuples ECMAScript proposal, which brings immutable data structures and structural equality to JavaScript, and parsing the Module Blocks proposal.
此外,我们还增加了对一些新的 Flow 和 TypeScript 功能的支持。
🌐 Additionally, we added support for some new Flow and TypeScript features.
你可以在 GitHub 上查看完整的更新日志。
🌐 You can read the full changelog on GitHub.