Skip to content

Commit 243f1bc

Browse files
Merge branch 'main' into consume-share-layers
2 parents 8f9fb99 + 5ea7aea commit 243f1bc

File tree

83 files changed

+1629
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1629
-142
lines changed

.changeset/funny-drinks-bathe.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/nice-suns-eat.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/real-otters-explode.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/six-yaks-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/rspack': patch
3+
---
4+
5+
fix(rspack): import plugin from sub path

.changeset/twelve-dingos-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/dts-plugin': patch
3+
---
4+
5+
Lazy emit DTS files on hmr rebuilds, do not block compiler pipeline

.cursorignore

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
./tmp
33
./scripts
44
./.git
5-
./packages/storybook-addon
6-
./packages/core
7-
./packages/utilities
8-
./packages/typescript
9-
./packages/native-*
10-
./apps
5+
packages/storybook-addon
6+
packages/core
7+
packages/utilities
8+
packages/typescript
9+
packages/native-*
10+
apps
1111
**/configCases
12+
**/dist
1213
apps/**
1314
*.snap
15+
*.js
16+

apps/manifest-demo/3010-rspack-provider/rspack.config.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = composePlugins(
4242
transform: {
4343
react: {
4444
runtime: 'automatic',
45+
refresh: true,
4546
},
4647
},
4748
},
@@ -60,6 +61,18 @@ module.exports = composePlugins(
6061
// publicPath must be specific url
6162
config.output.publicPath = 'http://localhost:3010/';
6263

64+
const rspackPlugin = config.plugins.find((plugin) => {
65+
return plugin.name === 'HtmlRspackPlugin';
66+
});
67+
68+
if (rspackPlugin && rspackPlugin._args && rspackPlugin._args[0]) {
69+
rspackPlugin._args[0].excludeChunks = ['rspack_provider'];
70+
} else {
71+
console.warn(
72+
'HtmlRspackPlugin not found or has unexpected structure. Skipping excludeChunks configuration.',
73+
);
74+
}
75+
6376
config.plugins.push(
6477
new ModuleFederationPlugin({
6578
name: 'rspack_provider',
@@ -70,10 +83,10 @@ module.exports = composePlugins(
7083
shared: {
7184
lodash: {},
7285
antd: {},
73-
'react/': {
74-
singleton: true,
75-
requiredVersion: '^18.3.1',
76-
},
86+
// 'react/': {
87+
// singleton: true,
88+
// requiredVersion: '^18.3.1',
89+
// },
7790
react: {
7891
singleton: true,
7992
requiredVersion: '^18.3.1',

apps/modernjs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @module-federation/modernjsapp
22

3+
## 0.1.74
4+
5+
### Patch Changes
6+
7+
- @module-federation/enhanced@0.8.3
8+
39
## 0.1.73
410

511
### Patch Changes

apps/modernjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@module-federation/modernjsapp",
33
"private": true,
4-
"version": "0.1.73",
4+
"version": "0.1.74",
55
"scripts": {
66
"reset": "npx rimraf ./**/node_modules",
77
"dev": "modern dev",

apps/react-ts-host/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ module.exports = composePlugins(
1212
withNx(),
1313
withReact(),
1414
async (config, context) => {
15+
config.devServer = config.devServer || {};
16+
config.devServer.host = '127.0.0.1';
1517
// prevent cyclic updates
1618
config.watchOptions = {
1719
ignored: ['**/node_modules/**', '**/@mf-types/**'],

0 commit comments

Comments
 (0)