diff --git a/packages/gatsby/src/utils/webpack.config.js b/packages/gatsby/src/utils/webpack.config.js index e8a1c8cfa54ac..63906e9afbbc5 100644 --- a/packages/gatsby/src/utils/webpack.config.js +++ b/packages/gatsby/src/utils/webpack.config.js @@ -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) {