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: 3 months ago
JSON representation
A configurable @babel plugin for react applications
- Host: GitHub
- URL: https://github.com/skan-io/babel-config-react
- Owner: skan-io
- License: mit
- Created: 2019-02-28T23:58:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-09T03:26:23.000Z (about 6 years ago)
- Last Synced: 2025-03-21T11:11:48.737Z (4 months ago)
- Language: JavaScript
- Size: 373 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
)
};
```