File tree Expand file tree Collapse file tree 6 files changed +5842
-4
lines changed Expand file tree Collapse file tree 6 files changed +5842
-4
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ module.exports = {
144144 // @remove -on-eject-begin
145145 babelrc : false ,
146146 presets : [ require . resolve ( 'babel-preset-react-app' ) ] ,
147+ plugins : [ require . resolve ( '../scripts/plugins/babelRelayPlugin' ) ] ,
147148 // @remove -on-eject-end
148149 // This is a feature of `babel-loader` for webpack (not Babel itself).
149150 // It enables caching results in ./node_modules/.cache/babel-loader/
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ module.exports = {
150150 query : {
151151 babelrc : false ,
152152 presets : [ require . resolve ( 'babel-preset-react-app' ) ] ,
153+ plugins : [ require . resolve ( '../scripts/plugins/babelRelayPlugin' ) ] ,
153154 } ,
154155 // @remove -on-eject-end
155156 } ,
Original file line number Diff line number Diff line change 11{
2- "name" : " react-scripts" ,
3- "version" : " 0.8.1 " ,
2+ "name" : " @cliedeman/ react-scripts" ,
3+ "version" : " 0.0.3 " ,
44 "description" : " Configuration and scripts for Create React App." ,
5- "repository" : " facebookincubator /create-react-app" ,
5+ "repository" : " cliedeman /create-react-app" ,
66 "license" : " BSD-3-Clause" ,
77 "engines" : {
88 "node" : " >=4"
2929 "babel-jest" : " 17.0.2" ,
3030 "babel-loader" : " 6.2.7" ,
3131 "babel-preset-react-app" : " ^2.0.0" ,
32+ "babel-relay-plugin" : " 0.9.3" ,
3233 "case-sensitive-paths-webpack-plugin" : " 1.1.4" ,
3334 "chalk" : " 1.1.3" ,
3435 "connect-history-api-fallback" : " 1.3.0" ,
Original file line number Diff line number Diff line change 1+ const getBabelRelayPlugin = require ( 'babel-relay-plugin' ) ;
2+ const schema = require ( '../../../../../graphql/schema.json' ) ;
3+
4+ module . exports = getBabelRelayPlugin ( schema . data ) ;
You can’t perform that action at this time.
0 commit comments