Skip to content

Commit

Permalink
feat(remix-dev): import .gql & .graphql files as text
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 8, 2022
1 parent ae120a8 commit 603fae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-poets-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": minor
---

feat(remix-dev): import `.gql` & `.graphql` files as text
2 changes: 2 additions & 0 deletions packages/remix-dev/compiler/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 603fae5

Please sign in to comment.