babel

v7.0.1arrow_drop_down
v7.0.1
STATUS
Passing
DOWNLOADS
39
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
429 KB
1 contributor
Install babel as a package?
Copied
npm i @bit/guyssar.compilers.compilers.babel
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
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';
toggle layout
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
Help and resources