diff --git a/.changeset/green-crabs-join.md b/.changeset/green-crabs-join.md new file mode 100644 index 00000000000..965f0458748 --- /dev/null +++ b/.changeset/green-crabs-join.md @@ -0,0 +1,5 @@ +--- +"@remix-run/dev": minor +--- + +Added support for importing `.zip` files diff --git a/contributors.yml b/contributors.yml index 3ab8b1c95dd..27682b60675 100644 --- a/contributors.yml +++ b/contributors.yml @@ -19,6 +19,7 @@ - alisd23 - alvinthen - amorriscode +- andreiduca - andrelandgraf - andrewbrey - AndrewIngram diff --git a/packages/remix-dev/compiler/loaders.ts b/packages/remix-dev/compiler/loaders.ts index 99e946d6598..56015a0e9cc 100644 --- a/packages/remix-dev/compiler/loaders.ts +++ b/packages/remix-dev/compiler/loaders.ts @@ -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 { diff --git a/packages/remix-dev/modules.ts b/packages/remix-dev/modules.ts index 41c8eee59b4..fb66c7fd39b 100644 --- a/packages/remix-dev/modules.ts +++ b/packages/remix-dev/modules.ts @@ -104,3 +104,7 @@ declare module "*.webmanifest" { let asset: string; export default asset; } +declare module "*.zip" { + let asset: string; + export default asset; +}