From 77c88d42a582c5654bcf4c864271bc3822346ec2 Mon Sep 17 00:00:00 2001 From: kayac-chang Date: Sat, 3 Sep 2022 14:50:54 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20add=20csv=20in=20mod?= =?UTF-8?q?ules.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/remix-dev/modules.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/remix-dev/modules.ts b/packages/remix-dev/modules.ts index 3ce00d5cd50..6b24647135b 100644 --- a/packages/remix-dev/modules.ts +++ b/packages/remix-dev/modules.ts @@ -10,6 +10,10 @@ declare module "*.css" { let asset: string; export default asset; } +declare module "*.csv" { + let asset: string; + export default asset; +} declare module "*.eot" { let asset: string; export default asset; From 924fd15b5d78cd87fbcbce63c76e4743738c1ea2 Mon Sep 17 00:00:00 2001 From: kayac-chang Date: Thu, 4 Aug 2022 21:59:22 +0800 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20support=20import=20c?= =?UTF-8?q?sv=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contributors.yml | 1 + packages/remix-dev/compiler/loaders.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/contributors.yml b/contributors.yml index 4164fec2abb..0ee8b04c51a 100644 --- a/contributors.yml +++ b/contributors.yml @@ -422,3 +422,4 @@ - zachdtaylor - zainfathoni - zhe +- kayac-chang diff --git a/packages/remix-dev/compiler/loaders.ts b/packages/remix-dev/compiler/loaders.ts index 7eccd766bdc..e1b16ed1ac5 100644 --- a/packages/remix-dev/compiler/loaders.ts +++ b/packages/remix-dev/compiler/loaders.ts @@ -5,6 +5,7 @@ export const loaders: { [ext: string]: esbuild.Loader } = { ".aac": "file", ".avif": "file", ".css": "file", + ".csv": "file", ".eot": "file", ".flac": "file", ".gif": "file", From 7b80a5f0d02926489a7106c4eb3c7cacd948402a Mon Sep 17 00:00:00 2001 From: Hello Date: Thu, 4 Aug 2022 22:27:01 +0800 Subject: [PATCH 3/6] Create wise-masks-sniff.md --- .changeset/wise-masks-sniff.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/wise-masks-sniff.md diff --git a/.changeset/wise-masks-sniff.md b/.changeset/wise-masks-sniff.md new file mode 100644 index 00000000000..64d20841511 --- /dev/null +++ b/.changeset/wise-masks-sniff.md @@ -0,0 +1,6 @@ +--- +"remix": patch +"@remix-run/dev": patch +--- + +feat(remix-dev/compiler): import `.csv` files as file From bdeb553a7fd1f0b219dcd8c0876d9263452d8bd5 Mon Sep 17 00:00:00 2001 From: Hello Date: Thu, 8 Sep 2022 15:34:09 +0800 Subject: [PATCH 4/6] Update wise-masks-sniff.md --- .changeset/wise-masks-sniff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/wise-masks-sniff.md b/.changeset/wise-masks-sniff.md index 64d20841511..06495a4ead2 100644 --- a/.changeset/wise-masks-sniff.md +++ b/.changeset/wise-masks-sniff.md @@ -1,6 +1,6 @@ --- "remix": patch -"@remix-run/dev": patch +"@remix-run/dev": minor --- feat(remix-dev/compiler): import `.csv` files as file From 792212cf65e76d34ab382c3112549bbc58dbfe35 Mon Sep 17 00:00:00 2001 From: Chance Strickland Date: Thu, 9 Feb 2023 13:29:15 +0100 Subject: [PATCH 5/6] Update .changeset/wise-masks-sniff.md --- .changeset/wise-masks-sniff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/wise-masks-sniff.md b/.changeset/wise-masks-sniff.md index 06495a4ead2..64d20841511 100644 --- a/.changeset/wise-masks-sniff.md +++ b/.changeset/wise-masks-sniff.md @@ -1,6 +1,6 @@ --- "remix": patch -"@remix-run/dev": minor +"@remix-run/dev": patch --- feat(remix-dev/compiler): import `.csv` files as file From ede5cedb3df9884675b537b5665673d9ef44e2c6 Mon Sep 17 00:00:00 2001 From: Chance Strickland Date: Thu, 9 Feb 2023 13:30:30 +0100 Subject: [PATCH 6/6] Update .changeset/wise-masks-sniff.md --- .changeset/wise-masks-sniff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/wise-masks-sniff.md b/.changeset/wise-masks-sniff.md index 64d20841511..a75068fe777 100644 --- a/.changeset/wise-masks-sniff.md +++ b/.changeset/wise-masks-sniff.md @@ -3,4 +3,4 @@ "@remix-run/dev": patch --- -feat(remix-dev/compiler): import `.csv` files as file +Add file loader for importing `.csv` files