Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(remix-dev): allow importing .zip files #3985

Merged
merged 2 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -35,6 +35,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 @@ -104,3 +104,7 @@ declare module "*.webmanifest" {
let asset: string;
export default asset;
}
declare module "*.zip" {
let asset: string;
export default asset;
}