2.2.1 • Published 5 years ago

@skan-io/babel-config-react v2.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

babel-config-react

A configurable @babel plugin for react applications

Usage

npm i -D @skan-io/babel-config-react

babel.config.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
  )
};