2.0.1 • Published 2 years ago

@choseohwan/babel-preset-react v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@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

react

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
        ]
    ]
}