Skip to content

Commit c1efbbf

Browse files
authored
chore: convergence of all package entries (#2269)
1 parent 196a96d commit c1efbbf

File tree

14 files changed

+55
-16
lines changed

14 files changed

+55
-16
lines changed

.changeset/happy-mugs-fail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@module-federation/enhanced': patch
3+
---
4+
5+
chore: convergence of all package entries
6+
chore: 收敛所有包的入口

apps/manifest-demo/3010-rspack-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@module-federation/enhanced-rspack": "workspace:*",
6+
"@module-federation/enhanced": "workspace:*",
77
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
88
"react-refresh": "0.14.0",
99
"@rspack/plugin-react-refresh": "0.5.9"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
// const { withModuleFederation } = require('@nx/react/module-federation');
88
const {
99
ModuleFederationPlugin,
10-
} = require('@module-federation/enhanced-rspack');
10+
} = require('@module-federation/enhanced/rspack');
1111

1212
module.exports = composePlugins(
1313
withNx(),

apps/manifest-demo/3011-rspack-manifest-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@module-federation/enhanced-rspack": "workspace:*",
6+
"@module-federation/enhanced": "workspace:*",
77
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
88
"react-refresh": "0.14.0",
99
"@rspack/plugin-react-refresh": "0.5.9"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
// const { withModuleFederation } = require('@nx/react/module-federation');
88
const {
99
ModuleFederationPlugin,
10-
} = require('@module-federation/enhanced-rspack');
10+
} = require('@module-federation/enhanced/rspack');
1111

1212
module.exports = composePlugins(
1313
withNx(),

apps/manifest-demo/3012-rspack-js-entry-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@module-federation/enhanced-rspack": "workspace:*",
6+
"@module-federation/enhanced": "workspace:*",
77
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
88
"react-refresh": "0.14.0",
99
"@rspack/plugin-react-refresh": "0.5.9"

apps/manifest-demo/3012-rspack-js-entry-provider/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
// const { withModuleFederation } = require('@nx/react/module-federation');
88
const {
99
ModuleFederationPlugin,
10-
} = require('@module-federation/enhanced-rspack');
10+
} = require('@module-federation/enhanced/rspack');
1111

1212
module.exports = composePlugins(
1313
withNx(),

apps/react-ts-remote/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "1.0.0",
55
"devDependencies": {
6-
"@module-federation/enhanced-rspack": "workspace:*",
6+
"@module-federation/enhanced": "workspace:*",
77
"react-refresh": "0.14.0",
88
"file-loader": "6.2.0"
99
}

apps/react-ts-remote/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
// const { withModuleFederation } = require('@nx/react/module-federation');
88
const {
99
ModuleFederationPlugin,
10-
} = require('@module-federation/enhanced-rspack');
10+
} = require('@module-federation/enhanced/rspack');
1111

1212
module.exports = composePlugins(
1313
withNx(),

packages/enhanced/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,36 @@
1818
"require": "./dist/src/index.js",
1919
"import": "./dist/src/index.js",
2020
"types": "./dist/index.d.ts"
21+
},
22+
"./webpack": {
23+
"require": "./dist/src/webpack.js",
24+
"import": "./dist/src/webpack.js",
25+
"types": "./dist/webpack.d.ts"
26+
},
27+
"./rspack": {
28+
"require": "./dist/src/rspack.js",
29+
"import": "./dist/src/rspack.js",
30+
"types": "./dist/rspack.d.ts"
31+
},
32+
"./runtime": {
33+
"require": "./dist/src/runtime.js",
34+
"import": "./dist/src/runtime.js",
35+
"types": "./dist/runtime.d.ts"
2136
}
2237
},
2338
"typesVersions": {
2439
"*": {
2540
".": [
2641
"./dist/src/index.d.ts"
42+
],
43+
"webpack": [
44+
"./dist/src/webpack.d.ts"
45+
],
46+
"rspack": [
47+
"./dist/src/rspack.d.ts"
48+
],
49+
"runtime": [
50+
"./dist/src/runtime.d.ts"
2751
]
2852
}
2953
},
@@ -36,6 +60,7 @@
3660
"@module-federation/manifest": "workspace:*",
3761
"@module-federation/managers": "workspace:*",
3862
"@module-federation/dts-plugin": "workspace:*",
63+
"@module-federation/enhanced-rspack": "workspace:*",
3964
"upath": "2.0.1"
4065
}
4166
}

0 commit comments

Comments
 (0)