Skip to content

Commit

Permalink
feat(remix-dev): allow importing .zip files (#3985)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiduca committed Aug 15, 2022
1 parent 81bec18 commit 7ee4293
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-crabs-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": minor
---

Added support for importing `.zip` files
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- alisd23
- alvinthen
- amorriscode
- andreiduca
- andrelandgraf
- andrewbrey
- AndrewIngram
Expand Down
1 change: 1 addition & 0 deletions packages/remix-dev/compiler/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const loaders: { [ext: string]: esbuild.Loader } = {
".webp": "file",
".woff": "file",
".woff2": "file",
".zip": "file",
};

export function getLoaderForFile(file: string): esbuild.Loader {
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 @@ -108,3 +108,7 @@ declare module "*.webmanifest" {
let asset: string;
export default asset;
}
declare module "*.zip" {
let asset: string;
export default asset;
}

0 comments on commit 7ee4293

Please sign in to comment.