Thanks to visit codestin.com
Credit goes to github.com

Skip to content

import失败,提示export 'default' (imported as 'impl') was not found in '../proto/proto.min' #4

@imndx

Description

@imndx

原因是proto.min.jsbase64.min.js不需要通过babel转换,需要在babel的配置文件中将这两个文件忽略。

.babelrc参考配置如下:

{
 "presets": [
   ["env", {
     "modules": false,
     "targets": {
       "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
     }
   }],
   "stage-2"
 ],
 "plugins": ["transform-vue-jsx", "transform-runtime"],
 "ignore": [
   "**/base64.min.js",
   "**/proto.min.js",
   "**/engine.min.js"
 ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions