Using babel-plugin-component components to introduce two sets of UI on demand will overwrite errors. Have you ever encountered it?

use the babel-plugin-component component to introduce two sets of UI on demand ( mint-ui and element-ui ), Anzhao official , which I wrote in the .babelrc file as follows:

import "~/style/pc/elementVariables.scss"

import {
  Row,
  Button,
  Icon
} from "element-ui"

export default {
  install (V) {
    V.use(Icon)
    V.use(Row)
    V.use(Button)
  }
}

are there any children"s shoes with the same problem? If there is any solution, you are welcome to discuss it. PS: introduces mint-ui and element-ui

at the same time because it is compatible with both mobile and PC side.

[
  "component",
  [
    { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" },
    { "libraryName": "mint-ui", "style": true }
  ]
]

babel 6.x

"component",
  [
    { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" },
    { "libraryName": "mint-ui", "style": true }
  ]

=
babel 7.x

[
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      },
      "element-ui"
    ],
    [
      "component",
      {
        "libraryName": "mint-ui",
        "style": true
      },
      "mint-ui"
    ]
Menu