0.0.7 • Published 3 years ago

@ganapativs/babel-preset-react v0.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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
0.0.7

3 years ago

0.0.6-0

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago