From c33105f55706c045def66b35a51af00c8a1cf930 Mon Sep 17 00:00:00 2001 From: Hendra Gotara Date: Thu, 25 Feb 2021 16:21:08 +0700 Subject: [PATCH] Update index.js (#29758) (cherry picked from commit 3cafa4fdc20f78896ca5ac2bf0f18cb9af3a2246) --- packages/gatsby-plugin-sharp/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gatsby-plugin-sharp/src/index.js b/packages/gatsby-plugin-sharp/src/index.js index 361e03bfc510b..d388d4abb2485 100644 --- a/packages/gatsby-plugin-sharp/src/index.js +++ b/packages/gatsby-plugin-sharp/src/index.js @@ -617,6 +617,9 @@ async function fluid({ file, args = {}, reporter, cache }) { case `webp`: srcSetType = `image/webp` break + case `avif`: + srcSetType = `image/avif` + break case ``: case `no_change`: default: