Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ganapativs/babel-preset-react

ganapativs114MIT0.0.7

Base babel config for react setup

readme

Base babel config for react setup

Automagically add Babel support to react setup by adding this package.

Install

yarn add @ganapativs/babel-preset-react --dev

Extend babel config

# create `.babelrc` in root folder of the service
# .babelrc
{
    "presets": [
        "@ganapativs/babel-preset-react"
    ]
}

# Or require in babel.config.js
module.exports = function config(api) {
    api.cache(true);

    return {
        presets: [
            "@ganapativs/babel-preset-react"
        ],
    }
}

# alternatively,
# use require.resolve('@ganapativs/babel-preset-react') in
# babel loader options in build tool config(eg: webpack config)

Publish

# Scoped packages are private by default
npm publish --access public