@ganapativs/babel-preset-react

0.0.7 • Public • Published

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

/@ganapativs/babel-preset-react/

    Package Sidebar

    Install

    npm i @ganapativs/babel-preset-react

    Weekly Downloads

    10

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    1.65 kB

    Total Files

    3

    Last publish

    Collaborators

    • ganapativs