get-babel-options

v0.0.3arrow_drop_down
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
13
LICENSE
MIT
VISIBILITY
Public
subject
Retrieves the babel options from the `.babelrc` file as JSON from the specified directory.
1 contributor
Like
Use get-babel-options in your project ?
Copied
npm i @bit/bit.envs.utils.get-babel-options

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

npm config set '@bit:registry' https://node.bitsrc.io
Don't show this again
Component Example
const babelOptions = getBabelOptions(); babel.transform( code, babelOptions, distPath
modified
chevron_left
chevron_right
getBabelOptions (
pathToLook:string
)

Retrieves the babel options from the .babelrc file as JSON from the specified directory.

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