Skip to content

Commit 349c73a

Browse files
authored
fix(3000-home): add trailing slash on antd and lodash shared config (#2038)
1 parent 398194e commit 349c73a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

apps/3000-home/next.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { withNx } = require('@nx/next/plugins/with-nx');
22
const NextFederationPlugin = require('@module-federation/nextjs-mf');
33

44
/**
5-
* @type {import('@nrwl/next/plugins/with-nx').WithNxOptions}
5+
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
66
**/
77
const nextConfig = {
88
nx: {
@@ -39,8 +39,8 @@ const nextConfig = {
3939
'./menu': './components/menu',
4040
},
4141
shared: {
42-
lodash: {},
43-
antd: {},
42+
'lodash/': {},
43+
'antd/': {},
4444
},
4545
extraOptions: {
4646
debug: false,

apps/3000-home/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const Home = () => {
9393
<td>
9494
Load federated component from checkout with old antd version
9595
</td>
96-
<td>[Button from antd@4.20.0]</td>
96+
<td>[Button from antd@4.24.15]</td>
9797
<td>
9898
<Suspense fallback="loading ButtonOldAnt">
9999
<ButtonOldAnt />

apps/3001-shop/next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const nextConfig = {
3131
'./menu': './components/menu',
3232
},
3333
shared: {
34-
lodash: {},
35-
antd: {},
34+
'lodash/': {},
35+
'antd/': {},
3636
},
3737
extraOptions: {
3838
exposePages: true,

apps/3002-checkout/next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const nextConfig = {
3030
'./menu': './components/menu',
3131
},
3232
shared: {
33-
lodash: {},
34-
antd: {},
33+
'lodash/': {},
34+
'antd/': {},
3535
},
3636
extraOptions: {
3737
exposePages: true,

0 commit comments

Comments
 (0)