From 6feebf65ecc557975f827596c4ff2a34d2c24acf Mon Sep 17 00:00:00 2001 From: Hendra Gotara Date: Thu, 25 Feb 2021 11:04:39 +0700 Subject: [PATCH] Update index.js --- 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 c2f10ddd51664..72b3c8c35206d 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: