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

babel

v7.0.1arrow_drop_down
v7.0.1
v7.0.0
v6.0.1
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
22,934
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 months ago
SIZE
424 KB
Bit Babel compiler. Compiles bit components using Babel.
3 contributors
Use babel in your project ?
Copied
npm i @bit/bit.envs.compilers.babel
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
modifieddraft
modifieddraft
chevron_left
chevron_right

Babel-based transpiling environment.

Bit build environment for transpiling using Bit.

How to use?

Import the environment.

If you are using Babel version 7.* - run this command:

bit import bit.envs/compilers/babel --compiler

If you are using Babel version 6.* - run this command:

bit import bit.envs/compilers/[email protected] --compiler

Then build using bit build.

bit build

What’s inside

  • Compiles js, jsx and ts files.
  • In order to see which babel presets and plugins are used, take a look at the .babelrc file.

Babel version

  • Minor / patch versions of this compilers is not in sync with the Babel minor / patch versions