歡迎您光臨本站 註冊首頁

Babel 7.8.0 發布,JavaScript 編譯器

←手機掃碼閱讀     admin @ 2020-01-15 , reply:0

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


[admin ]

來源:OsChina
連結:https://www.oschina.net/news/112797/babel-7-8-0-released
Babel 7.8.0 發布,JavaScript 編譯器已經有100次圍觀

http://coctec.com/news/all/show-post-222952.html