@fetchq/babel-preset-package
v0.0.1
Published
This [Babel](https://babeljs.io/) preset is used for our internal packages.
Downloads
17
Readme
@fetchq/babel-preset-package
This Babel preset is used for our internal packages.
Packages
@babel/preset-env
@babel/preset-react
@babel/preset-flow
@babel/plugin-proposal-class-properties
@babel/plugin-proposal-optional-chaining
@babel/plugin-transform-runtime
Usage
Install @fetchq/babel-preset-package
and add a .babelrc
file with the following content to the root of your project:
npm install --dev @fetchq/babel-preset-package
{
"presets": ["@fetchq/babel-preset-package"]
}
Options
browser
boolean
, defaults to false
.
Defines if @babel/preset-env
is configured to target browsers or Node.js environments.
debug
boolean
, defaults to false
.
Outputs the targets/plugins used and the version specified in plugin data version to console.log
.