Skip to content

Commit d6c2b73

Browse files
Riley MillerGatsbyJS Bot
Riley Miller
authored and
GatsbyJS Bot
committed
fix(#19220): added default args for generateBase64 function (#20158)
1 parent c3ca41a commit d6c2b73

File tree

1 file changed

+1
-1
lines changed
  • packages/gatsby-plugin-sharp/src

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function queueImageResizing({ file, args = {}, reporter }) {
151151

152152
// A value in pixels(Int)
153153
const defaultBase64Width = () => getPluginOptions().base64Width || 20
154-
async function generateBase64({ file, args, reporter }) {
154+
async function generateBase64({ file, args = {}, reporter }) {
155155
const pluginOptions = getPluginOptions()
156156
const options = healOptions(pluginOptions, args, file.extension, {
157157
width: defaultBase64Width(),

0 commit comments

Comments
 (0)