Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skan-io/babel-config-react

A configurable @babel plugin for react applications
https://github.com/skan-io/babel-config-react

Last synced: about 1 month ago
JSON representation

A configurable @babel plugin for react applications

Awesome Lists containing this project

README

        

# babel-config-react
A configurable @babel plugin for react applications

## Usage

> ```bash
> npm i -D @skan-io/babel-config-react
> ```

`babel.config.js`

```js
const config = require('@skan-io/babel-config-react');

module.exports = {
...config.default(
true, // Use jest testing env
'current', // Node version to target
['last 2 versions','not IE < 11'], // Browser targets
['last 1 Chrome versions'], // Development browser targets
['@babel/plugin-transform-runtime'] // Extra babel plugins
// NOTE: these will still need installation
)
};
```