We’re excited to announce Bit’s new home at bit.dev!Learn more

get-babel-rc

v0.0.2arrow_drop_down
v0.0.2
v0.0.1
STATUS
None
DOWNLOADS
11
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
subject
Retrieves the `.babelrc` file as JSON from the specified directory (default is working directory).
1 contributor
Like
Use get-babel-rc in your project ?
Copied
npm i @bit/bit.envs.utils.get-babel-rc
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
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';
const babelOptions = getBabelRc(); babel.transform( code, babelOptions, distPath
modified
chevron_left
chevron_right
getBabelRc (
pathToLook:string
)

Retrieves the .babelrc file as JSON from the specified directory (default is working directory).

Example
const babelOptions = getBabelRc();
babel.transform(code, babelOptions, distPath);
Argument
pathToLook: string