From 75be4683117dd6c0b039036b9884180de00c90a9 Mon Sep 17 00:00:00 2001 From: Sven Schwyn Date: Tue, 2 Apr 2024 12:07:32 +0200 Subject: [PATCH] Support AVIF and WebP image formats (#28) --- dist/esbuild.js | 2 ++ src/esbuild.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/esbuild.js b/dist/esbuild.js index 99e71f5..63e3673 100644 --- a/dist/esbuild.js +++ b/dist/esbuild.js @@ -11,6 +11,8 @@ const loader = { ".jpg": "file", ".jpeg": "file", ".gif": "file", + ".avif": "file", + ".webp": "file", ".svg": "file", ".woff": "file", ".woff2": "file", diff --git a/src/esbuild.ts b/src/esbuild.ts index 464fc1e..309d4f4 100644 --- a/src/esbuild.ts +++ b/src/esbuild.ts @@ -18,6 +18,8 @@ const loader: { [ext: string]: Loader } = { ".jpg": "file", ".jpeg": "file", ".gif": "file", + ".avif": "file", + ".webp": "file", ".svg": "file", ".woff": "file", ".woff2": "file",