From 997985a608e8a90b464a0078e0c86d970b0c953e Mon Sep 17 00:00:00 2001 From: GatsbyJS Bot Date: Thu, 25 Feb 2021 05:46:16 -0500 Subject: [PATCH] Update index.js (#29758) (#29761) (cherry picked from commit 3cafa4fdc20f78896ca5ac2bf0f18cb9af3a2246) Co-authored-by: Hendra Gotara --- 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: