the project needs to use both element and ivew, but for optimization, select on-demand reference and find that both plug-ins need to modify the same file. Has anyone used it?
element needs to be modified in .babelrc file
{
"presets": [["es2015", { "modules": false }]],
"plugins": [
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
]
}
iview needs to be modified in .babelrc file
{
"plugins": [["import", {
"libraryName": "iview",
"libraryDirectory": "src/components"
}]]
}
modifies the same code in the same file. Has anyone ever tried to reference two controls on demand at the same time? how should this file be modified?