@choseohwan/babel-preset-react
v2.0.1
Published
react babel preset library
Downloads
13
Readme
@choseohwan/babel-preset-react
react base preset for SeoHwan Cho's project
Install
npm
npm install @choseohwan/babel-preset-react @babel/core typescript react --save-dev
yarn
yarn add @choseohwan/babel-preset-react @babel/core typescript react -D
Options
env
- configuration option for @babel/preset-env
react
- configuration option for @babel/preset-react
typescript
- configuration option for @babel/preset-typescript
Usage
Make babel.config.js
file in the root directory of packages.
babel.config.js
module.exports = {
"presets": [
"@choseohwan/babel-preset-react"
]
}
With options
babel.config.js
const options = {
env: {
targets: {
node: 'current'
}
},
react: {
runtime: 'classic'
}
}
module.exports = {
"presets": [
[
"@choseohwan/babel-preset-react",
options
]
]
}