@stellar-apps/babel-preset-react

1.0.4 • Public • Published

@stellar-apps/babel-preset-react

A babel preset for configuring React transforms in Stellar apps and packages.

Installation

yarn add --dev @stellar-apps/babel-preset-react

Usage

.babelrc

{
  "presets": [
    [
      "@stellar-apps/react", {
        "transformConstant": true,
        "transformPure": false
      }
    ]
  ]
}

Included presets

  • @babel/preset-react

Included plugins

  • @babel/plugin-transform-react-constant-element
  • babel-plugin-transform-react-pure-components
  • babel-plugin-transform-react-remove-prop-types

Options

transformPure

  • Define false to turn off babel-plugin-transform-react-pure-components

transformConstant

  • Define false to turn off @babel/plugin-transform-react-constant-element

removePropTypes

  • Define false to turn off babel-plugin-transform-react-remove-prop-types

Readme

Keywords

none

Package Sidebar

Install

npm i @stellar-apps/babel-preset-react

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

2.66 kB

Total Files

4

Last publish

Collaborators

  • jaredlunde
  • relytmcd