环境啊你好坑

  • pubdate : 2019-05-16 11:03:31

  • tags: babel


regeneratorRuntime is not defined

通过这样配置.babelrc搞定了

{
    "presets": [
        [
            "@babel/preset-env",
            {
                "useBuiltIns": false,
            }
        ],
    ],
    "plugins": [
        "@babel/plugin-transform-runtime"
    ]
}