@best-shot/preset-react

0.13.4 • Public • Published

@best-shot/preset-react logo

A best-shot preset for react project.

npm github node

This preset offer the following features:

  • React framework and JSX syntax support.
  • Use react-refresh to support hot module reload.
  • Remove react/airbnb propTypes in production mode.
  • JSX syntax in typescript: *.tsx

Installation

npm install @best-shot/preset-react --save-dev

Usage

// example: .best-shot/config.mjs
export const config = {
  presets: ['babel', 'react']
};

Tips

This preset contains some optimization transform. It is not 100% safe, you can enable them manually.

// example: babel.config.json
{
  "plugins": ["@babel/transform-react-constant-elements"]
}

Related

Package Sidebar

Install

npm i @best-shot/preset-react

Weekly Downloads

93

Version

0.13.4

License

MIT

Unpacked Size

6.27 kB

Total Files

4

Last publish

Collaborators

  • airkro