packages/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.js
function getEntry(knownHashes, url, revision) {
  // We're assuming that if the URL contains any of the known hashes
  // (either the short or full chunk hash or compilation hash) then it's
  // already revisioned, and we don't need additional out-of-band revisioning.
  if (!revision || knownHashes.some((hash) => url.includes(hash))) {
    return {url};
  }
  return {revision, url};
}
function getEntry(knownHashes, url, revision) {
  // We're assuming that if the URL contains any of the known hashes
  // (either the short or full chunk hash or compilation hash) then it's
  // already revisioned, and we don't need additional out-of-band revisioning.
  if (!revision || knownHashes.some((hash) => url.includes(hash))) {
    return {url};
  }
  return {revision, url};
}
function getEntry ( knownHashes , url , revision ) { // We're assuming that if the URL contains any of the known hashes // (either the short or full chunk hash or compilation hash) then it's // already revisioned, and we don't need additional out-of-band revisioning. if ( ! revision || knownHashes . some ( ( hash ) => url . includes ( hash ) ) ) { return { url } ; } return { revision , url } ; }
A single manifest entry that Workbox can precache.
When possible, we leave out the revision information, which tells Workbox
that the URL contains enough info to uniquely version the asset.

@param {Array<string>} knownHashes All of the hashes that are associated
with this webpack build.
@param {string} url webpack asset url path
@param {string} [revision] A revision hash for the entry
@return {module:workbox-build.ManifestEntry} A single manifest entry

@private
A single manifest entry that Workbox can precache . When possible we leave out the revision information which tells Workbox that the URL contains enough info to uniquely version the asset .