You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then create a file named `.babelrc` with following contents in the root folder of your project:
26
26
27
-
```js
28
-
{
29
-
"presets": ["react-app"]
30
-
}
31
-
```
27
+
```js
28
+
{
29
+
"presets": ["react-app"]
30
+
}
31
+
```
32
32
33
33
This preset uses the `useBuiltIns` option with [transform-object-rest-spread](http://babeljs.io/docs/plugins/transform-object-rest-spread/) and [transform-react-jsx](http://babeljs.io/docs/plugins/transform-react-jsx/), which assumes that `Object.assign` is available or polyfilled.
34
+
35
+
## Usage with TypeScript
36
+
37
+
To use this package with [`@babel/preset-typescript`](https://www.npmjs.com/package/@babel/preset-typescript), you need to disable `@babel/preset-flow` first.
0 commit comments