Skip to content

Commit 8ac0423

Browse files
committed
Set unsafeCache to false in webpack config
1 parent 0487291 commit 8ac0423

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ module.exports = (env, argv) => {
384384
: []),
385385
),
386386
modules: [path.join(workspacePath, 'node_modules')],
387+
// Disable unsafeCache as it causes incorrectly resolved packages when using d3 aliases for example. I.e. adding d3v5 will potentionally hoist d3-array in a conflicting version with d3v3, however the aggressive caching will not notice this difference.
388+
// See https://webpack.js.org/configuration/resolve/#resolveunsafecache for details.
389+
unsafeCache: false,
387390
fallback: {
388391
util: require.resolve('util/'),
389392
},

0 commit comments

Comments
 (0)