Skip to content

Commit

Permalink
feat(remix-dev): allow importing .csv files (#3920)
Browse files Browse the repository at this point in the history
Co-authored-by: Chance Strickland <hi@chance.dev>
  • Loading branch information
kayac-chang and chaance authored Feb 9, 2023
1 parent 8ba0243 commit a292d12
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/wise-masks-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"remix": patch
"@remix-run/dev": patch
---

Add file loader for importing `.csv` files
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,4 @@
- zainfathoni
- zayenz
- zhe
- kayac-chang
1 change: 1 addition & 0 deletions packages/remix-dev/compiler/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const loaders: { [ext: string]: esbuild.Loader } = {
".aac": "file",
".avif": "file",
".css": "file",
".csv": "file",
".eot": "file",
".fbx": "file",
".flac": "file",
Expand Down
4 changes: 4 additions & 0 deletions packages/remix-dev/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,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;
Expand Down

0 comments on commit a292d12

Please sign in to comment.