Share your code. Components are building blocks, you are the architect.

compilers/babel
v0.0.20
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Bit build environment for transpiling using Bit.
bit
Contributors
Gravatar for undefinedGravatar for undefined
10

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

npm config set '@bit:registry' https://node.bitsrc.io
Use compilers/babel in your project
npm i @bit/bit.envs.compilers.babel
Copied
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};