babel-plugin-zoom-react-ui

0.1.3 • Public • Published

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
    }
  ]
];

/babel-plugin-zoom-react-ui/

    Package Sidebar

    Install

    npm i babel-plugin-zoom-react-ui

    Weekly Downloads

    2

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    7.63 kB

    Total Files

    4

    Last publish

    Collaborators

    • tommygaessler
    • zoomnode