Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

babel

v7.0.4arrow_drop_down
v7.0.4
v7.0.3
v7.0.2
v7.0.1
v7.0.0
v6.0.1
v6.0.0
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
28,236
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 months ago
SIZE
N/A
Bit Babel compiler. Compiles bit components using Babel.
6 contributors
Install babel as a package?
Copied
npm i @bit/bit.envs.compilers.babel
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Files
compilers/babel/index.js
15 Lines(12 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require('@babel/preset-env');
require('@babel/plugin-proposal-class-properties');
require('@babel/plugin-proposal-export-default-from');
require('@babel/plugin-proposal-export-namespace-from');

const baseCompile = require('../../internal/babelBaseCompiler');
const compiledFileTypes = ['js', 'jsx', 'ts'];

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

export default {
  compile
};