Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
tkvw committed Aug 23, 2017
1 parent d70e255 commit 2157950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

function rewireGraphQLTag(config, env) {
const gqlTagExtension = /\.(graphql|gql)$/
const gqlExtension = /\.(graphql|gql)$/

const fileLoader = config.module.rules.find(rule=> rule.loader && rule.loader.indexOf("file-loader")!==-1);
fileLoader.exclude.push(gqlExtension);

const gqlTagRule = {
test: gqlTagExtension,
test: gqlExtension,
loader: 'graphql-tag/loader',
exclude: /node_modules/
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"graphql-tag": "^2.4.2",
"graphql-tag": "^2.4.2"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2157950

Please sign in to comment.