Skip to content

Commit 0eba911

Browse files
fix(gatsby): allow null plugin option values on build (#33227)
1 parent 4006f73 commit 0eba911

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/gatsby/src/schema/graphql-engine/print-plugins.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ export const flattenedPlugins =
116116
pluginOptions: _.cloneDeepWith(
117117
plugin.pluginOptions,
118118
(value: any): any => {
119-
if (typeof value === `object` && value.module && value.modulePath) {
119+
if (
120+
typeof value === `object` &&
121+
value !== null &&
122+
value.module &&
123+
value.modulePath
124+
) {
120125
const { module, modulePath, ...subPlugin } = value
121126
return {
122127
...subPlugin,

0 commit comments

Comments
 (0)