From f0bdb35662b4b2c81d40beccceb833f4b772ad3f Mon Sep 17 00:00:00 2001 From: Jacob Ebey Date: Fri, 13 May 2022 22:55:32 -0700 Subject: [PATCH 1/2] feat: import `.sql` files as text --- packages/remix-dev/compiler/loaders.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/remix-dev/compiler/loaders.ts b/packages/remix-dev/compiler/loaders.ts index c35b9598274..b6341d6a09b 100644 --- a/packages/remix-dev/compiler/loaders.ts +++ b/packages/remix-dev/compiler/loaders.ts @@ -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", From 93afee633d82f9c9a91834d92c6484325fa327c5 Mon Sep 17 00:00:00 2001 From: Jacob Ebey Date: Wed, 3 Aug 2022 15:29:37 -0700 Subject: [PATCH 2/2] Create four-ladybugs-wait.md --- .changeset/four-ladybugs-wait.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/four-ladybugs-wait.md diff --git a/.changeset/four-ladybugs-wait.md b/.changeset/four-ladybugs-wait.md new file mode 100644 index 00000000000..1e20b75c8e5 --- /dev/null +++ b/.changeset/four-ladybugs-wait.md @@ -0,0 +1,5 @@ +--- +"@remix-run/dev": patch +--- + +Allow importing `.sql` files as text