Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
feat: add graphql file support
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
  • Loading branch information
mikemurray committed Mar 27, 2020
1 parent d5a3dc8 commit 1a877f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package/config/webpack.config.js
@@ -1,5 +1,5 @@
const path = require("path");
const HtmlWebPackPlugin = require("html-webpack-plugin");
const path = require("path")

// We set this in the `build:modules` package.json script
const esmodules = process.env.BABEL_MODULES === "1";
Expand All @@ -18,6 +18,11 @@ module.exports = {
test: /\.mjs$/,
type: "javascript/auto"
},
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: "graphql-tag/loader"
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
Expand Down

0 comments on commit 1a877f4

Please sign in to comment.