Skip to content

Commit

Permalink
always alias createContentDigest, not just for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Oct 4, 2022
1 parent dcfd48f commit 03c27e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,11 @@ module.exports = async (
getPackageRoot(`@gatsbyjs/reach-router`),
`es`
)
} else {
resolve.alias[`gatsby-core-utils/create-content-digest`] =
directoryPath(`.cache/create-content-digest-browser-shim`)
}

resolve.alias[`gatsby-core-utils/create-content-digest`] = directoryPath(
`.cache/create-content-digest-browser-shim`
)
}

if (stage === `build-javascript` && program.profile) {
Expand Down

0 comments on commit 03c27e8

Please sign in to comment.