Skip to content

Commit 541494d

Browse files
authored
fix(modernjs): correct splitChunks.cacheGroups key which need to be removed (#2940)
1 parent 59758b7 commit 541494d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/grumpy-lobsters-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/modern-js': patch
3+
---
4+
5+
fix(modernjs): correct splitChunks.cacheGroups key which need to be removed

packages/modernjs/src/cli/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ export const getIPV4 = (): string => {
370370
// lib-axios.js: include axios.
371371

372372
const SPLIT_CHUNK_MAP = {
373-
REACT: 'lib-react',
374-
ROUTER: 'lib-router',
373+
REACT: 'react',
374+
ROUTER: 'router',
375375
LODASH: 'lib-lodash',
376376
ANTD: 'lib-antd',
377377
ARCO: 'lib-arco',

0 commit comments

Comments
 (0)