babel-preset-react-app 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +5 -5
- package/create.js +0 -0
- package/dependencies.js +0 -0
- package/dev.js +0 -0
- package/index.js +0 -0
- package/package.json +1 -1
- package/prod.js +0 -0
- package/test.js +0 -0
- package/webpack-overrides.js +0 -0
package/LICENSE
CHANGED
File without changes
|
package/README.md
CHANGED
@@ -24,7 +24,7 @@ npm install babel-preset-react-app --save-dev
|
|
24
24
|
|
25
25
|
Then create a file named `.babelrc` with following contents in the root folder of your project:
|
26
26
|
|
27
|
-
```
|
27
|
+
```json
|
28
28
|
{
|
29
29
|
"presets": ["react-app"]
|
30
30
|
}
|
@@ -34,9 +34,9 @@ This preset uses the `useBuiltIns` option with [transform-object-rest-spread](ht
|
|
34
34
|
|
35
35
|
## Usage with Flow
|
36
36
|
|
37
|
-
|
37
|
+
Make sure you have a `.flowconfig` file at the root directory. You can also use the `flow` option on `.babelrc`:
|
38
38
|
|
39
|
-
```
|
39
|
+
```json
|
40
40
|
{
|
41
41
|
"presets": [["react-app", { "flow": true, "typescript": false }]]
|
42
42
|
}
|
@@ -44,9 +44,9 @@ Flow is enabled by default. Make sure you have a `.flowconfig` file at the root
|
|
44
44
|
|
45
45
|
## Usage with TypeScript
|
46
46
|
|
47
|
-
|
47
|
+
Make sure you have a `tsconfig.json` file at the root directory. You can also use the `typescript` option on `.babelrc`:
|
48
48
|
|
49
|
-
```
|
49
|
+
```json
|
50
50
|
{
|
51
51
|
"presets": [["react-app", { "flow": false, "typescript": true }]]
|
52
52
|
}
|
package/create.js
CHANGED
File without changes
|
package/dependencies.js
CHANGED
File without changes
|
package/dev.js
CHANGED
File without changes
|
package/index.js
CHANGED
File without changes
|
package/package.json
CHANGED
package/prod.js
CHANGED
File without changes
|
package/test.js
CHANGED
File without changes
|
package/webpack-overrides.js
CHANGED
File without changes
|