@ganapativs/babel-preset-react
v0.0.7
Published
Base babel config for react setup
Downloads
103
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 --devExtend 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