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..edbfc3aa37e 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": "file", + ".graphql": "file", ".ico": "file", ".jpeg": "file", ".jpg": "file",