babel-plugin-zoom-react-ui
v0.1.3
Published
use ui as required by babel
Downloads
17
Readme
babel-plugin-zoom-react-ui
Installation
npm install babel-plugin-zoom-react-ui -D
Usage
plugins:["babel-plugin-zoom-react-ui"]
Other import situation
plugins: [
[
'babel-plugin-zoom-react-ui',
{
map: {
'@components': function({ name, prefixName, changedName }) {
/*
changedName Button->button,DatePicker->date-picker,
prefixName {prefix:string,name:string} Chart-Column -> {prefix:Chart,name:Column}
if change imported componentName like Chart-Column js:{ rely: 'recharts',name:'Column'}
*/
return {
js: { rely: `your new ui js position` }, //where render js path,and name
css: { rely: `your new ui css position` } //which render css
};
}
},
useTheme:false//optional,Boolean,if you use this opt,you need use less-loader in webpack,and config modifyVars:{} && javascriptEnabled:true
}
]
];