babel 转码 async await 无法解析问题
巴扎黑
巴扎黑 2016-11-09 17:31:42
0
1
1678

使用 babel 转码 async await 无法解析问题报错:You gave us a visitor for the node type "ForAwaitStatement" but it's not a valid type

.babelrc 配置文件

{
    "plugins": [        "transform-strict-mode",        "transform-es2015-modules-commonjs",        "transform-es2015-spread",        "transform-es2015-destructuring",        "transform-es2015-parameters"
    ],
    "presets": [        "es2015",        "stage-0"
    ]}


巴扎黑
巴扎黑

全部回覆(1)
phpcn_u29

presets-stage-3 才支持,或者直接用 preset-latest

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!