From 03c27e8f3af6a6a61f3ca0b84039a29f7504c212 Mon Sep 17 00:00:00 2001 From: pieh Date: Tue, 4 Oct 2022 11:08:42 +0200 Subject: [PATCH] always alias createContentDigest, not just for v5 --- packages/gatsby/src/utils/webpack.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) {