Skip to content

Commit

Permalink
realy modern
Browse files Browse the repository at this point in the history
  • Loading branch information
matar committed Jul 19, 2017
1 parent 0482058 commit fa8c8fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ module.exports = {
// @remove-on-eject-begin
babelrc: false,
presets: [require.resolve('babel-preset-react-app')],
plugins: [require.resolve('babel-plugin-relay')],
// @remove-on-eject-end
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
Expand Down
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ module.exports = {
// @remove-on-eject-begin
babelrc: false,
presets: [require.resolve('babel-preset-react-app')],
plugins: [require.resolve('babel-plugin-relay')],
// @remove-on-eject-end
compact: true,
},
Expand Down
9 changes: 9 additions & 0 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@
"whatwg-fetch": "2.0.3"
},
"devDependencies": {
"babel-plugin-relay": "^1.1.0",
"react": "^15.5.4",
"react-dom": "^15.5.4"
},
"babel": {
"presets": [
"react-app"
],
"plugins": [
"relay"
]
},
"optionalDependencies": {
"fsevents": "1.1.2"
}
Expand Down

0 comments on commit fa8c8fb

Please sign in to comment.