Skip to content

Commit

Permalink
fix(service-worker): handle undefined config vars in injectPrecacheMa…
Browse files Browse the repository at this point in the history
…nifest
  • Loading branch information
KaiVandivier committed Nov 8, 2024
1 parent e123d22 commit a90a4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/lib/pwa/injectPrecacheManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ module.exports = function injectPrecacheManifest(paths, config) {
// slow down service worker installation
'**/moment-locales/*',
'**/*.map',
...config.pwa.caching.globsToOmitFromPrecache,
...config.pwa?.caching?.globsToOmitFromPrecache ?? [],
],
additionalManifestEntries: config.pwa.caching.additionalManifestEntries,
additionalManifestEntries: config.pwa?.caching?.additionalManifestEntries,
injectionPoint: 'self.__WB_MANIFEST',
// Skip revision hashing for files with hash or semver in name:
// (see https://regex101.com/r/z4Hy9k/3/ for RegEx details)
Expand Down

0 comments on commit a90a4e0

Please sign in to comment.