diff --git a/index.d.ts b/index.d.ts index cbc4448..3298a4b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -38,3 +38,7 @@ declare module "*.jp2" { export = value; } +declare module "*.avif" { + const value: string; + export = value; +} diff --git a/index.js b/index.js index 97765f3..4c7e121 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ module.exports = ({ dynamicAssetPrefix = false, ...nextConfig } = {}) => { inlineImageLimit: 8192, assetPrefix: "", basePath: "", - fileExtensions: ["jpg", "jpeg", "png", "svg", "gif", "ico", "webp", "jp2"], + fileExtensions: ["jpg", "jpeg", "png", "svg", "gif", "ico", "webp", "jp2", "avif"], }, nextConfig); if (!options.defaultLoaders) {