Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List features beyond ES6 supported by create-react-app #1313

Merged
merged 2 commits into from
Feb 12, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
- [npm test](#npm-test)
- [npm run build](#npm-run-build)
- [npm run eject](#npm-run-eject)
- [Supported features beyond ES6](#supported-features-beyond-es6)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: title case?

- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor)
- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)
- [Changing the Page `<title>`](#changing-the-page-title)
Expand Down Expand Up @@ -162,6 +163,14 @@ Instead, it will copy all the configuration files and the transitive dependencie

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Supported Features Beyond ES6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe switch to ES2015 (ES6)?


The following language features beyond ES6 are supported (at the time of writing, stage 2 and 3 proposals):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be valuable to include a small comment about why these features are supported ala #636 (comment)


* [Public class fields](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-class-properties) ([stage 2](https://tc39.github.io/proposal-class-public-fields/))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* [ES2015 parameters](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-rest-spread) ([stage 3](https://babeljs.io/docs/plugins/transform-es2015-parameters/))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this one needs to be mentioned since transform-es2015-parameters is included in the ES2015 preset?

(It's currently only being explicitly included in tests until some object rest/spread bugs are fixed)

* [Object rest spread](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-rest-spread) ([stage 3](https://github.com/tc39/ecma262))

## Syntax Highlighting in the Editor

To configure the syntax highlighting in your favorite text editor, head to the [relevant Babel documentation page](https://babeljs.io/docs/editors) and follow the instructions. Some of the most popular editors are covered.
Expand Down