Rollup打包工具


常见报错

Q: Using removed Babel 5 option: .modules

Using removed Babel 5 option: .modules - Use the corresponding module transform plugin in the `plugins` option. 

A:添加.babelrc配置文件

{
    "presets": [
        [
            "es2015", {"modules": false, "loose": true}
        ],
        ["stage-2"]
    ],
    "plugins": [
        ["transform-runtime"]
    ],
    "comments": false
}

文章作者: Semon
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Semon !
评论
  目录