babel-plugin-bit

0.1.1 • Public • Published

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

/babel-plugin-bit/

    Package Sidebar

    Install

    npm i babel-plugin-bit

    Weekly Downloads

    5

    Version

    0.1.1

    License

    ISC

    Last publish

    Collaborators

    • learn-bit
    • teambit-owner
    • shohamgilad
    • davidfirst
    • lalybar
    • ranm8
    • guysaar
    • itaymendel
    • erezbit
    • joshk2
    • redigma
    • yona007
    • jonisar