babel-plugin-component
整体引入:
Converts
to
var button =
按需引入:
Converts
to
var button =
1.installation :
npm i babel-plugin-component -D
2.usage:
在 .babelrc 中配置它:
{
"plugins": ["other-plugin", ["component", [
{ "libraryName": "mint-ui", "style": true }
]]]
}