File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Enable ES7 Transforms With react-rails
2
2
3
- The [ ` react-rails ` ] ( ) gem adds JSX and ES6 transforms to the asset pipeline.
4
- By using ` .js.jsx ` and ` .es6.jsx ` extensions with relevant files, the asset
5
- pipeline will know to make the appropriate transformation when compiling
6
- application assets. ES7 transforms are not enabled by default, but can be
7
- configured. Add the following to the ` config/application.js `
8
- file to allow ES7's * class properties* syntax:
3
+ The [ ` react-rails ` ] ( https://github.com/reactjs/react-rails ) gem adds JSX and
4
+ ES6 transforms to the asset pipeline. By using ` .js.jsx ` and ` .es6.jsx `
5
+ extensions with relevant files, the asset pipeline will know to make the
6
+ appropriate transformation when compiling application assets. ES7 transforms
7
+ are not enabled by default, but can be configured. Add the following to the
8
+ ` config/application.js ` file to allow ES7's * class properties* syntax:
9
9
10
10
``` ruby
11
11
config.react.jsx_transform_options = {
You can’t perform that action at this time.
0 commit comments