babel

v0.0.20arrow_drop_down
v0.0.20
v0.0.19
v0.0.18
v0.0.17
v0.0.16
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
v0.0.10
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
15,340
LICENSE
MIT
VISIBILITY
Public
subject
Bit build environment for transpiling using Bit.
2 contributors
Like
Use babel in your project ?
Copied
npm i @bit/bit.envs.compilers.babel

Configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Don't show this again
Files
compilers/babel/index.js
17 Lines(13 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require('babel-preset-latest')
require("babel-plugin-transform-object-rest-spread");
require('babel-plugin-transform-decorators-legacy');
require('babel-plugin-transform-object-entries');
require('babel-plugin-object-values-to-object-keys');
require('babel-plugin-add-module-exports');
require('babel-plugin-transform-async-to-generator');

const baseCompile = require('../../internal/babelBaseCompiler');

const compiledFileTypes = ['js', 'jsx', 'ts'];

const compile = (files, distPath) => {
  return baseCompile(files, distPath, __dirname, compiledFileTypes);
}

export default {compile};