babel-preset-react-app
Babel preset used by Create React App
Last updated 7 years ago by timer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install babel-preset-react-app 
SYNC missed versions from official npm registry.

babel-preset-react-app

This package includes the Babel preset used by Create React App.
Please refer to its documentation:

Usage in Create React App Projects

The easiest way to use this configuration is with Create React App, which includes it by default. You don’t need to install it separately in Create React App projects.

Usage Outside of Create React App

If you want to use this Babel preset in a project not built with Create React App, you can install it with following steps.

First, install Babel.

Then install babel-preset-react-app.

npm install babel-preset-react-app --save-dev

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["react-app"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

Usage with TypeScript

To use this package with @babel/preset-typescript, you need to disable @babel/preset-flow first.

You can achieve this by doing:

{
  "presets": [
    ["react-app", {
        "flow": false
    }],
    "@babel/typescript"
  ]
}

Current Tags

  • 9.1.0-next.61                                ...           canary (5 years ago)
  • 10.0.1                                ...           latest (3 years ago)
  • 10.1.0-next.14                                ...           next (3 years ago)

82 Versions

  • 10.1.0-next.14                                ...           3 years ago
  • 10.0.1                                ...           3 years ago
  • 11.0.0-next.104                                ...           3 years ago
  • 11.0.0-next.103                                ...           3 years ago
  • 11.0.0-next.102                                ...           3 years ago
  • 11.0.0-next.101                                ...           3 years ago
  • 11.0.0-next.91                                ...           3 years ago
  • 11.0.0-next.81                                ...           3 years ago
  • 11.0.0-next.75                                ...           3 years ago
  • 10.0.0                                ...           4 years ago
  • 10.0.0-next.117                                ...           4 years ago
  • 10.0.0-next.116                                ...           4 years ago
  • 10.0.0-next.98                                ...           4 years ago
  • 10.0.0-next.96                                ...           4 years ago
  • 10.0.0-next.77                                ...           4 years ago
  • 10.0.0-next.64                                ...           4 years ago
  • 9.1.2                                ...           5 years ago
  • 9.1.1                                ...           5 years ago
  • 9.1.0                                ...           5 years ago
  • 9.1.0-next.103                                ...           5 years ago
  • 9.1.0-next.85                                ...           5 years ago
  • 9.1.0-next.62                                ...           5 years ago
  • 9.1.0-next.61                                ...           5 years ago
  • 9.0.2                                ...           5 years ago
  • 9.0.1                                ...           5 years ago
  • 9.0.0                                ...           6 years ago
  • 8.0.0                                ...           6 years ago
  • 8.0.0-next.74                                ...           6 years ago
  • 8.0.0-next.b0cbf2ca                                ...           6 years ago
  • 7.0.2                                ...           6 years ago
  • 7.0.1                                ...           6 years ago
  • 7.0.1-next.6a95aae9                                ...           6 years ago
  • 7.0.0                                ...           6 years ago
  • 6.1.0                                ...           6 years ago
  • 6.0.0                                ...           6 years ago
  • 5.0.5-next.c662dfb0                                ...           6 years ago
  • 5.0.5-next.9b4009d7                                ...           6 years ago
  • 5.0.4                                ...           6 years ago
  • 5.0.3                                ...           6 years ago
  • 5.0.2                                ...           6 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 4.0.0-next.fb6e6f70                                ...           6 years ago
  • 4.0.0-next.2150693d                                ...           6 years ago
  • 4.0.0-next.a671462c                                ...           6 years ago
  • 3.1.2                                ...           6 years ago
  • 4.0.0-next.3e165448                                ...           6 years ago
  • 4.0.0-next.66cc7a90                                ...           7 years ago
  • 4.0.0-next.b2fd8db8                                ...           7 years ago
  • 4.0.0-next.47d2d941                                ...           7 years ago
  • 4.0.0-next.03604a46                                ...           7 years ago
  • 4.0.0-next.9754a231                                ...           7 years ago
  • 4.0.0-next.096703ab                                ...           7 years ago
  • 3.1.1                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.3                                ...           7 years ago
  • 3.0.2                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0-alpha.60ae2b6d                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 3.0.0-alpha.55afd862                                ...           7 years ago
  • 3.0.0-alpha.02968ecd                                ...           7 years ago
  • 3.0.0-alpha.0d0536f9                                ...           7 years ago
  • 3.0.0-alpha.c82c4f05                                ...           7 years ago
  • 3.0.0-alpha.e280254d                                ...           7 years ago
  • 3.0.0-alpha.134d2297                                ...           7 years ago
  • 3.0.0-alpha.dadf93b2                                ...           7 years ago
  • 3.0.0-alpha.58689133                                ...           7 years ago
  • 3.0.0-alpha.f55d2212                                ...           8 years ago
  • 2.2.0                                ...           8 years ago
  • 2.1.1                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0-alpha.9c45b252                                ...           8 years ago
  • 1.0.0-alpha.e756d73a                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE