File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 47
47
"express" : " ^4.16.3" ,
48
48
"express-graphql" : " ^0.6.12" ,
49
49
"graphql" : " 0.13.2" ,
50
- "graphql-relay" : " 0.5.5 "
50
+ "graphql-relay" : " graphql/graphql-relay-js "
51
51
},
52
52
"devDependencies" : {
53
53
"babel-cli" : " ^6.26.0" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ module.exports = {
7
7
rules : [
8
8
{
9
9
test : / \. j s $ / ,
10
- exclude : / n o d e _ m o d u l e s / ,
10
+ // Exclude node_modules as usual, with one exception:
11
+ // Compile graphql-relay with Babel, because we're not using the
12
+ // precompiled version published to npm (see `alias` below).
13
+ exclude : / n o d e _ m o d u l e s (? ! \/ g r a p h q l - r e l a y \/ s r c ) / ,
11
14
use : {
12
15
loader : 'babel-loader' ,
13
16
options : {
@@ -24,6 +27,12 @@ module.exports = {
24
27
} ,
25
28
] ,
26
29
} ,
30
+ resolve : {
31
+ alias : {
32
+ // https://github.com/graphql/graphql-relay-js/issues/208
33
+ 'graphql-relay$' : 'graphql-relay/src/index.js' ,
34
+ } ,
35
+ } ,
27
36
output : {
28
37
path : __dirname + '/public' ,
29
38
publicPath : '/' ,
Original file line number Diff line number Diff line change 2922
2922
version "0.5.5"
2923
2923
resolved "https://registry.yarnpkg.com/graphql-relay/-/graphql-relay-0.5.5.tgz#d6815e6edd618e878d5d921c13fc66033ec867e2"
2924
2924
2925
+ graphql-relay@graphql/graphql-relay-js :
2926
+ version "0.5.5"
2927
+ resolved "https://codeload.github.com/graphql/graphql-relay-js/tar.gz/8055dfd534bc2c5f400ff4470974f74255f79c87"
2928
+
2925
2929
2926
2930
version "0.13.2"
2927
2931
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.2.tgz#4c740ae3c222823e7004096f832e7b93b2108270"
You can’t perform that action at this time.
0 commit comments