Skip to content

Commit 8791329

Browse files
trevorbladessidharthachatterjee
authored andcommitted
feat(gatsby-plugin-offline): Merge workboxConfig and default o… (#19437)
1 parent 0fc9534 commit 8791329

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/gatsby-plugin-offline/src/gatsby-node.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ exports.onPostBuild = (
151151
clientsClaim: true,
152152
}
153153

154-
const combinedOptions = {
155-
...options,
156-
...workboxConfig,
157-
}
154+
const combinedOptions = _.merge(options, workboxConfig)
158155

159156
const idbKeyvalFile = `idb-keyval-iife.min.js`
160157
const idbKeyvalSource = require.resolve(`idb-keyval/dist/${idbKeyvalFile}`)

0 commit comments

Comments
 (0)