@bit/loader-babel

4.0.1 • Public • Published

bit-loader-babel

Greenkeeper badge

babel plugin for bit loader.

Examples

simple bit-bundler setup. This will pick up you .babelrc config files.

var Bitbundler = require("@bit/bundler");

var bitbundler = new Bitbundler({
  loader: [
    "@bit/loader-babel"
  ]
})

configuring a different babel core

bit-loader-babel uses the babel-core module to transpile your code, and it ships with one by default. You can override the babel-core module that bit-loader-babel uses if you need newer/older/specific versions of babel.

var Bitbundler = require("@bit/bundler");
var babelCore = require("@babel/core");

var bitbundler = new Bitbundler({
  loader: [
    ["@bit/loader-babel", {
      core: babelCore,
    }]
  }
})

Babel version

If you are looking to use babel 6 and earlier, please checkout @bit/loader-babel@3. If you are looking for babal 7 support, you can use latest.

License

License under MIT

Package Sidebar

Install

npm i @bit/loader-babel

Weekly Downloads

3

Version

4.0.1

License

MIT

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • manchagnu