diff --git a/index.js b/index.js index 251661f..1cf9283 100644 --- a/index.js +++ b/index.js @@ -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/ } diff --git a/package.json b/package.json index 9334015..2d4b7ad 100644 --- a/package.json +++ b/package.json @@ -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",