Skip to content

Commit 997985a

Browse files
GatsbyJS Bothendra-go
GatsbyJS Bot
andauthored
Update index.js (#29758) (#29761)
(cherry picked from commit 3cafa4f) Co-authored-by: Hendra Gotara <[email protected]>
1 parent 61bdabd commit 997985a

File tree

1 file changed

+3
-0
lines changed
  • packages/gatsby-plugin-sharp/src

1 file changed

+3
-0
lines changed

packages/gatsby-plugin-sharp/src/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ async function fluid({ file, args = {}, reporter, cache }) {
617617
case `webp`:
618618
srcSetType = `image/webp`
619619
break
620+
case `avif`:
621+
srcSetType = `image/avif`
622+
break
620623
case ``:
621624
case `no_change`:
622625
default:

0 commit comments

Comments
 (0)