babel-preset-rg
Babel preset for ResearchGate
Install
$ yarn add --dev @researchgate/babel-preset-rg
Usage
.babelrc
(Recommended)
Via .babelrc
{
"presets": ["@researchgate/babel-preset-rg"]
}
Options
env BABEL_ENV
Supports either production
, development
or test
env BABEL_OUTPUT
Supports either esm
or cjs
Default to esm
unless BABEL_ENV is set to test then it defaults to cjs