Skip to content

Commit 70d0b35

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 7c45b63 commit 70d0b35

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
@@ -261,8 +261,8 @@ const config: Configuration = {
261261
enforce: true,
262262
},
263263
'vendor-patternfly-5': {
264-
// modules with @patternfly/ that don't also have @patternfly-4/ in the string
265-
test: /^(?!.*@patternfly-4\/).*@patternfly\/.*/,
264+
// modules with @patternfly/ that don't also have @patternfly-4/ in the string, plus d3-* modules
265+
test: /^(?!.*@patternfly-4\/)(.*@patternfly\/.*|.*[\\/]node_modules[\\/]d3-.*)/,
266266
},
267267
'vendor-patternfly-4-shared': {
268268
test: /@patternfly-4\//,

0 commit comments

Comments
 (0)