babel-plugin-bit
identify bit() calls and replace it with require using bit-js resolve function. also, removes the original bit call.
- combine with webpack in order to bundle
installation
npm install --save-dev babel-plugin-bit
usage
.babelrc
{
"only": "*.js",
"plugins": [
["bit"]
]
}