Skip to content

Commit

Permalink
Webpack fix to handle latest GraphQL version
Browse files Browse the repository at this point in the history
Not sure why, but Webpack is causing errors after upgrading to the
latest graphql. Switching the order of JS loading fixes the issue.
Credit to:
apollographql/graphql-tag#155 (comment)
  • Loading branch information
bryankennedy committed Jun 1, 2018
1 parent 661b510 commit fd5bfe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/clientRun/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
extensions: ['.web.js', '.js', '.mjs', '.json', '.web.jsx', '.jsx'],
alias: {

// Support React Native Web
Expand Down
2 changes: 1 addition & 1 deletion packages/clientRun/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
extensions: ['.web.js', '.js', '.mjs', '.json', '.web.jsx', '.jsx'],
alias: {

// Support React Native Web
Expand Down

0 comments on commit fd5bfe5

Please sign in to comment.