@module-federation/modern-js 0.0.0-next-20250313075107 → 0.0.0-next-20250313081234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,13 +61,13 @@ const moduleFederationConfigPlugin = (userConfig) => ({
61
61
  const enableSSR = (_userConfig_userConfig_ssr = (_userConfig_userConfig = userConfig.userConfig) === null || _userConfig_userConfig === void 0 ? void 0 : _userConfig_userConfig.ssr) !== null && _userConfig_userConfig_ssr !== void 0 ? _userConfig_userConfig_ssr : Boolean(modernjsConfig === null || modernjsConfig === void 0 ? void 0 : (_modernjsConfig_server = modernjsConfig.server) === null || _modernjsConfig_server === void 0 ? void 0 : _modernjsConfig_server.ssr);
62
62
  api.modifyBundlerChain((chain) => {
63
63
  const isWeb = (0, import_utils.isWebTarget)(chain.get("target"));
64
- (0, import_utils.addMyTypes2Ignored)(chain, isWeb ? ssrConfig : csrConfig);
65
- const targetMFConfig = isWeb ? ssrConfig : csrConfig;
66
- (0, import_utils.patchMFConfig)(targetMFConfig, isWeb, userConfig.remoteIpStrategy || "ipv4");
64
+ (0, import_utils.addMyTypes2Ignored)(chain, !isWeb ? ssrConfig : csrConfig);
65
+ const targetMFConfig = !isWeb ? ssrConfig : csrConfig;
66
+ (0, import_utils.patchMFConfig)(targetMFConfig, !isWeb, userConfig.remoteIpStrategy || "ipv4");
67
67
  (0, import_utils.patchBundlerConfig)({
68
68
  // @ts-expect-error chain type is not correct
69
69
  chain,
70
- isServer: isWeb,
70
+ isServer: !isWeb,
71
71
  modernjsConfig,
72
72
  mfConfig,
73
73
  enableSSR
@@ -37,13 +37,13 @@ var moduleFederationConfigPlugin = function(userConfig) {
37
37
  enableSSR = (_userConfig_userConfig_ssr = (_userConfig_userConfig = userConfig.userConfig) === null || _userConfig_userConfig === void 0 ? void 0 : _userConfig_userConfig.ssr) !== null && _userConfig_userConfig_ssr !== void 0 ? _userConfig_userConfig_ssr : Boolean(modernjsConfig === null || modernjsConfig === void 0 ? void 0 : (_modernjsConfig_server = modernjsConfig.server) === null || _modernjsConfig_server === void 0 ? void 0 : _modernjsConfig_server.ssr);
38
38
  api.modifyBundlerChain(function(chain) {
39
39
  var isWeb = isWebTarget(chain.get("target"));
40
- addMyTypes2Ignored(chain, isWeb ? ssrConfig : csrConfig);
41
- var targetMFConfig = isWeb ? ssrConfig : csrConfig;
42
- patchMFConfig(targetMFConfig, isWeb, userConfig.remoteIpStrategy || "ipv4");
40
+ addMyTypes2Ignored(chain, !isWeb ? ssrConfig : csrConfig);
41
+ var targetMFConfig = !isWeb ? ssrConfig : csrConfig;
42
+ patchMFConfig(targetMFConfig, !isWeb, userConfig.remoteIpStrategy || "ipv4");
43
43
  patchBundlerConfig({
44
44
  // @ts-expect-error chain type is not correct
45
45
  chain,
46
- isServer: isWeb,
46
+ isServer: !isWeb,
47
47
  modernjsConfig,
48
48
  mfConfig,
49
49
  enableSSR
@@ -26,13 +26,13 @@ const moduleFederationConfigPlugin = (userConfig) => ({
26
26
  const enableSSR = (_userConfig_userConfig_ssr = (_userConfig_userConfig = userConfig.userConfig) === null || _userConfig_userConfig === void 0 ? void 0 : _userConfig_userConfig.ssr) !== null && _userConfig_userConfig_ssr !== void 0 ? _userConfig_userConfig_ssr : Boolean(modernjsConfig === null || modernjsConfig === void 0 ? void 0 : (_modernjsConfig_server = modernjsConfig.server) === null || _modernjsConfig_server === void 0 ? void 0 : _modernjsConfig_server.ssr);
27
27
  api.modifyBundlerChain((chain) => {
28
28
  const isWeb = isWebTarget(chain.get("target"));
29
- addMyTypes2Ignored(chain, isWeb ? ssrConfig : csrConfig);
30
- const targetMFConfig = isWeb ? ssrConfig : csrConfig;
31
- patchMFConfig(targetMFConfig, isWeb, userConfig.remoteIpStrategy || "ipv4");
29
+ addMyTypes2Ignored(chain, !isWeb ? ssrConfig : csrConfig);
30
+ const targetMFConfig = !isWeb ? ssrConfig : csrConfig;
31
+ patchMFConfig(targetMFConfig, !isWeb, userConfig.remoteIpStrategy || "ipv4");
32
32
  patchBundlerConfig({
33
33
  // @ts-expect-error chain type is not correct
34
34
  chain,
35
- isServer: isWeb,
35
+ isServer: !isWeb,
36
36
  modernjsConfig,
37
37
  mfConfig,
38
38
  enableSSR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.0.0-next-20250313075107",
3
+ "version": "0.0.0-next-20250313081234",
4
4
  "files": [
5
5
  "dist/",
6
6
  "types.d.ts",
@@ -89,10 +89,10 @@
89
89
  "@swc/helpers": "0.5.13",
90
90
  "node-fetch": "~3.3.0",
91
91
  "react-error-boundary": "4.1.2",
92
- "@module-federation/rsbuild-plugin": "0.0.0-next-20250313075107",
93
- "@module-federation/enhanced": "0.0.0-next-20250313075107",
94
- "@module-federation/node": "0.0.0-next-20250313075107",
95
- "@module-federation/sdk": "0.0.0-next-20250313075107"
92
+ "@module-federation/rsbuild-plugin": "0.0.0-next-20250313081234",
93
+ "@module-federation/enhanced": "0.0.0-next-20250313081234",
94
+ "@module-federation/node": "0.0.0-next-20250313081234",
95
+ "@module-federation/sdk": "0.0.0-next-20250313081234"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@modern-js/app-tools": "2.65.1",
@@ -100,7 +100,7 @@
100
100
  "@modern-js/module-tools": "2.65.1",
101
101
  "@modern-js/runtime": "2.65.1",
102
102
  "@modern-js/tsconfig": "2.65.1",
103
- "@module-federation/manifest": "0.0.0-next-20250313075107"
103
+ "@module-federation/manifest": "0.0.0-next-20250313081234"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": ">=17",