diff --git a/core/gatsby-theme-docz/lib/onCreateWebpackConfig.js b/core/gatsby-theme-docz/lib/onCreateWebpackConfig.js index 8d488ef26..514ad9325 100644 --- a/core/gatsby-theme-docz/lib/onCreateWebpackConfig.js +++ b/core/gatsby-theme-docz/lib/onCreateWebpackConfig.js @@ -20,7 +20,7 @@ module.exports = async (params, opts) => { }) } - if (hasParentNodeModules && stage === 'develop') { + if (hasParentNodeModules) { actions.setWebpackConfig({ resolve: { modules: [nodeModules, parentNodeModules],