From 279d82df6db2de2aa80b73c2e29dfd2039dfcaa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 4 Aug 2022 13:24:15 +0200 Subject: [PATCH] feat(remix-dev): import `.gql` & `.graphql` files as text --- .changeset/four-poets-stare.md | 5 +++++ packages/remix-dev/compiler/loaders.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/four-poets-stare.md diff --git a/.changeset/four-poets-stare.md b/.changeset/four-poets-stare.md new file mode 100644 index 00000000000..e1d6a894ff7 --- /dev/null +++ b/.changeset/four-poets-stare.md @@ -0,0 +1,5 @@ +--- +"@remix-run/dev": minor +--- + +feat(remix-dev): import `.gql` & `.graphql` files as text diff --git a/packages/remix-dev/compiler/loaders.ts b/packages/remix-dev/compiler/loaders.ts index b6341d6a09b..99e946d6598 100644 --- a/packages/remix-dev/compiler/loaders.ts +++ b/packages/remix-dev/compiler/loaders.ts @@ -7,6 +7,8 @@ export const loaders: { [ext: string]: esbuild.Loader } = { ".eot": "file", ".flac": "file", ".gif": "file", + ".gql": "text", + ".graphql": "text", ".ico": "file", ".jpeg": "file", ".jpg": "file",