Babel plugin to avoid cherry-pick imports from buildo-react-components
You can finally import named exports from buildo-react-components
using ES6 destructuring without worrying about your bundle size!
// before;; // now;
How to use
Install with npm
npm i --save-dev babel-plugin-buildo-react-components
add "buildo-react-components" in your .babelrc
plugins: "buildo-react-components"
Caveats
imports from the /lib
folder are not supported yet so you must include /buildo-react-components/
in webpack
How it works
destructured imports are safely transformed
// your code; // after transformation;;
default imports are left untouched
// your code; // left untouched;
you can mix any kind of import together
// your code; // after transformation;;;
link-state functions are safely transformed too
// your code; // after transformation;