Skip to content

Commit 2157950

Browse files
committed
Fixed error
1 parent d70e255 commit 2157950

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
function rewireGraphQLTag(config, env) {
3-
const gqlTagExtension = /\.(graphql|gql)$/
3+
const gqlExtension = /\.(graphql|gql)$/
44

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

88
const gqlTagRule = {
9-
test: gqlTagExtension,
9+
test: gqlExtension,
1010
loader: 'graphql-tag/loader',
1111
exclude: /node_modules/
1212
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"dependencies": {
10-
"graphql-tag": "^2.4.2",
10+
"graphql-tag": "^2.4.2"
1111
},
1212
"repository": {
1313
"type": "git",

0 commit comments

Comments
 (0)