7.22.0 发布:支持显式资源管理和导入属性解析
Babel 7.22.0 已经发布,支持解析/转换 显式资源管理 提案,包括同步和异步两种版本,并且支持解析 导入属性(这是旧的 导入断言 提案的发展版)。
🌐 Babel 7.22.0 is out, with parsing/transform support for the Explicit Resource Management proposal, including both the sync and async variants, and with parsing support for the Import Attributes (an evolution of the old Import Assertions proposal).
我们也根据提案中的一些变化更新了装饰器的实现,并新增了对 TypeScript import ... = 和 export ... = 语句的支持。
🌐 We also updated our implementation of decorators following some changes in the proposal, and added support for the TypeScript import ... = and export ... = statements.
@babel/preset-env 现在默认支持 v 正则表达式标志的转换功能,这个标志最近作为 ECMAScript 标准的一部分被批准了。最后,我们把所有用于 稳定 ECMAScript 特性的插件名称从 -proposal- 改成了 -transform-。
你可以在 GitHub 上阅读完整的更新日志。
🌐 You can read the whole changelog on GitHub.