Skip to content

Commit 52181f7

Browse files
committed
CONSOLE-5011: Move d3 back into pf5 chunk
d3 is a transitive dependency of `@patternfly/react-topology`. previously it was in the `vendor-patternfly-5` chunk because of that, but now it is not due to yarn hoisting
1 parent fb4a366 commit 52181f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/webpack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ const config: Configuration = {
260260
enforce: true,
261261
},
262262
'vendor-patternfly-5': {
263-
// modules with @patternfly/ that don't also have @patternfly-4/ in the string
264-
test: /^(?!.*@patternfly-4\/).*@patternfly\/.*/,
263+
// modules with @patternfly/ that don't also have @patternfly-4/ in the string, plus d3-* modules
264+
test: /^(?!.*@patternfly-4\/)(.*@patternfly\/.*|.*[\\/]node_modules[\\/]d3-.*)/,
265265
},
266266
'vendor-patternfly-4-shared': {
267267
test: /@patternfly-4\//,

0 commit comments

Comments
 (0)