-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation about custom babel configuration
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ You can find the most recent version of this guide [here](https://github.com/fac | |
- [Using Global Variables](#using-global-variables) | ||
- [Adding Bootstrap](#adding-bootstrap) | ||
- [Adding Flow](#adding-flow) | ||
- [Adding Custom Babel Configuration](#adding-custom-babel-configuration) | ||
- [Adding Custom Environment Variables](#adding-custom-environment-variables) | ||
- [Can I Use Decorators?](#can-i-use-decorators) | ||
- [Integrating with a Node Backend](#integrating-with-a-node-backend) | ||
|
@@ -494,6 +495,18 @@ In the future we plan to integrate it into Create React App even more closely. | |
|
||
To learn more about Flow, check out [its documentation](https://flowtype.org/). | ||
|
||
## Adding Custom Babel Configuration | ||
|
||
You can override builtin babel presets and plugins [via .babelrc or package.json](https://babeljs.io/docs/usage/babelrc/). | ||
|
||
>Note: Don't forget to install babel-preset-react-app and include "react-app" preset into your .babelrc or package.json babel configuration section. | ||
```js | ||
{ | ||
"presets": ["react-app", "stage-0"] | ||
} | ||
``` | ||
|
||
## Adding Custom Environment Variables | ||
|
||
>Note: this feature is available with `[email protected]` and higher. | ||
|