@module-federation/modern-js 0.0.0-refactor-manifest-20251015114345 → 0.0.0-refactor-manifest-20251017031825
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.
|
@@ -40,7 +40,6 @@ __export(configPlugin_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(configPlugin_exports);
|
|
42
42
|
var import_path = __toESM(require("path"));
|
|
43
|
-
var import_fs = __toESM(require("fs"));
|
|
44
43
|
var import_utils = require("./utils");
|
|
45
44
|
var import_sdk = require("@module-federation/sdk");
|
|
46
45
|
var import_node_bundle_require = require("@modern-js/node-bundle-require");
|
|
@@ -153,17 +152,6 @@ const patchMFConfig = (mfConfig, isServer, remoteIpStrategy, enableSSR) => {
|
|
|
153
152
|
const runtimePlugins = [
|
|
154
153
|
...mfConfig.runtimePlugins || []
|
|
155
154
|
];
|
|
156
|
-
try {
|
|
157
|
-
const nodeModulesPath = import_path.default.resolve(process.cwd(), "node_modules");
|
|
158
|
-
const bridgeReactPath = import_path.default.join(nodeModulesPath, "@module-federation/bridge-react");
|
|
159
|
-
if (import_fs.default.existsSync(bridgeReactPath) && (!(mfConfig === null || mfConfig === void 0 ? void 0 : mfConfig.bridge) || !mfConfig.bridge.disableAlias)) {
|
|
160
|
-
mfConfig.bridge = {
|
|
161
|
-
disableAlias: true
|
|
162
|
-
};
|
|
163
|
-
import_logger.default.debug(`${import_constant.PLUGIN_IDENTIFIER} use "@module-federation/modern-js/react" instead of "@module-federation/bridge-react" !`);
|
|
164
|
-
}
|
|
165
|
-
} catch (e) {
|
|
166
|
-
}
|
|
167
155
|
patchDTSConfig(mfConfig, isServer);
|
|
168
156
|
injectRuntimePlugins(require.resolve("@module-federation/modern-js/shared-strategy"), runtimePlugins);
|
|
169
157
|
if (enableSSR && (0, import_utils3.isDev)()) {
|
|
@@ -5,7 +5,6 @@ import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
|
5
5
|
import { _ as _type_of } from "@swc/helpers/_/_type_of";
|
|
6
6
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
7
7
|
import path from "path";
|
|
8
|
-
import fs from "fs";
|
|
9
8
|
import { getIPV4, isWebTarget, skipByTarget } from "./utils";
|
|
10
9
|
import { encodeName } from "@module-federation/sdk";
|
|
11
10
|
import { bundle } from "@modern-js/node-bundle-require";
|
|
@@ -143,17 +142,6 @@ var patchMFConfig = function(mfConfig, isServer, remoteIpStrategy, enableSSR) {
|
|
|
143
142
|
throw new Error("".concat(PLUGIN_IDENTIFIER, " mfConfig.name can not be empty!"));
|
|
144
143
|
}
|
|
145
144
|
var runtimePlugins = _to_consumable_array(mfConfig.runtimePlugins || []);
|
|
146
|
-
try {
|
|
147
|
-
var nodeModulesPath = path.resolve(process.cwd(), "node_modules");
|
|
148
|
-
var bridgeReactPath = path.join(nodeModulesPath, "@module-federation/bridge-react");
|
|
149
|
-
if (fs.existsSync(bridgeReactPath) && (!(mfConfig === null || mfConfig === void 0 ? void 0 : mfConfig.bridge) || !mfConfig.bridge.disableAlias)) {
|
|
150
|
-
mfConfig.bridge = {
|
|
151
|
-
disableAlias: true
|
|
152
|
-
};
|
|
153
|
-
logger.debug("".concat(PLUGIN_IDENTIFIER, ' use "@module-federation/modern-js/react" instead of "@module-federation/bridge-react" !'));
|
|
154
|
-
}
|
|
155
|
-
} catch (e) {
|
|
156
|
-
}
|
|
157
145
|
patchDTSConfig(mfConfig, isServer);
|
|
158
146
|
injectRuntimePlugins(require.resolve("@module-federation/modern-js/shared-strategy"), runtimePlugins);
|
|
159
147
|
if (enableSSR && isDev()) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import fs from "fs";
|
|
3
2
|
import { getIPV4, isWebTarget, skipByTarget } from "./utils";
|
|
4
3
|
import { encodeName } from "@module-federation/sdk";
|
|
5
4
|
import { bundle } from "@modern-js/node-bundle-require";
|
|
@@ -112,17 +111,6 @@ const patchMFConfig = (mfConfig, isServer, remoteIpStrategy, enableSSR) => {
|
|
|
112
111
|
const runtimePlugins = [
|
|
113
112
|
...mfConfig.runtimePlugins || []
|
|
114
113
|
];
|
|
115
|
-
try {
|
|
116
|
-
const nodeModulesPath = path.resolve(process.cwd(), "node_modules");
|
|
117
|
-
const bridgeReactPath = path.join(nodeModulesPath, "@module-federation/bridge-react");
|
|
118
|
-
if (fs.existsSync(bridgeReactPath) && (!(mfConfig === null || mfConfig === void 0 ? void 0 : mfConfig.bridge) || !mfConfig.bridge.disableAlias)) {
|
|
119
|
-
mfConfig.bridge = {
|
|
120
|
-
disableAlias: true
|
|
121
|
-
};
|
|
122
|
-
logger.debug(`${PLUGIN_IDENTIFIER} use "@module-federation/modern-js/react" instead of "@module-federation/bridge-react" !`);
|
|
123
|
-
}
|
|
124
|
-
} catch (e) {
|
|
125
|
-
}
|
|
126
114
|
patchDTSConfig(mfConfig, isServer);
|
|
127
115
|
injectRuntimePlugins(require.resolve("@module-federation/modern-js/shared-strategy"), runtimePlugins);
|
|
128
116
|
if (enableSSR && isDev()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-refactor-manifest-
|
|
3
|
+
"version": "0.0.0-refactor-manifest-20251017031825",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
"@swc/helpers": "^0.5.17",
|
|
120
120
|
"node-fetch": "~3.3.0",
|
|
121
121
|
"react-error-boundary": "4.1.2",
|
|
122
|
-
"@module-federation/
|
|
123
|
-
"@module-federation/
|
|
124
|
-
"@module-federation/
|
|
125
|
-
"@module-federation/runtime": "0.0.0-refactor-manifest-
|
|
126
|
-
"@module-federation/
|
|
127
|
-
"@module-federation/
|
|
128
|
-
"@module-federation/
|
|
122
|
+
"@module-federation/bridge-react": "0.0.0-refactor-manifest-20251017031825",
|
|
123
|
+
"@module-federation/rsbuild-plugin": "0.0.0-refactor-manifest-20251017031825",
|
|
124
|
+
"@module-federation/enhanced": "0.0.0-refactor-manifest-20251017031825",
|
|
125
|
+
"@module-federation/runtime": "0.0.0-refactor-manifest-20251017031825",
|
|
126
|
+
"@module-federation/sdk": "0.0.0-refactor-manifest-20251017031825",
|
|
127
|
+
"@module-federation/cli": "0.0.0-refactor-manifest-20251017031825",
|
|
128
|
+
"@module-federation/node": "0.0.0-refactor-manifest-20251017031825"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@modern-js/core": "2.68.2",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@modern-js/tsconfig": "2.68.2",
|
|
138
138
|
"@types/react": "^18.3.11",
|
|
139
139
|
"@types/react-dom": "^18.3.0",
|
|
140
|
-
"@module-federation/manifest": "0.0.0-refactor-manifest-
|
|
140
|
+
"@module-federation/manifest": "0.0.0-refactor-manifest-20251017031825"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
143
|
"react": ">=17",
|