Skip to content

Commit

Permalink
feat(remix-dev): import .sql files as text (#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey authored and mcansh committed Aug 11, 2022
1 parent 6ab5cc3 commit e1ec2b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-ladybugs-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Allow importing `.sql` files as text
1 change: 1 addition & 0 deletions packages/remix-dev/compiler/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const loaders: { [ext: string]: esbuild.Loader } = {
".ogg": "file",
".otf": "file",
".png": "file",
".sql": "text",
".svg": "file",
".ts": "ts",
".tsx": "tsx",
Expand Down

0 comments on commit e1ec2b5

Please sign in to comment.