{
    "presets": ["@babel/preset-env", "@babel/preset-react"],
    "plugins": ["@babel/plugin-transform-runtime", 
        "@babel/plugin-proposal-object-rest-spread",
         "@babel/plugin-proposal-class-properties", 
         ["component", 
        {
          "libraryName": "mint-ui",
          "style": true
        }
      ]]
}

在“component”’后面直接跟一个对象,mint-ui文档中多了[ ],babel-plugin-component的使用还是要参考官方用法:https://www.npmjs.com/package/babel-plugin-component

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2021-06-28
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-01-08
  • 2021-05-27
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案