@module-federation/rspack 2.6.0 → 2.8.0
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.
- package/dist/ModuleFederationPlugin.js +36 -32
- package/dist/ModuleFederationPlugin.mjs +22 -31
- package/dist/RemoteEntryPlugin.js +13 -11
- package/dist/RemoteEntryPlugin.mjs +0 -3
- package/dist/TreeShakingSharedPlugin.js +19 -15
- package/dist/TreeShakingSharedPlugin.mjs +0 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +16 -14
- package/dist/index.mjs +2 -5
- package/dist/logger.js +14 -12
- package/dist/logger.mjs +2 -4
- package/dist/plugin.js +19 -18
- package/dist/plugin.mjs +1 -2
- package/dist/remote-entry-plugin.js +19 -18
- package/dist/remote-entry-plugin.mjs +1 -2
- package/package.json +11 -10
|
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/compat_get_default_export
|
|
14
13
|
(() => {
|
|
15
14
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
|
|
|
24
23
|
})();
|
|
25
24
|
// webpack/runtime/define_property_getters
|
|
26
25
|
(() => {
|
|
27
|
-
__webpack_require__.d = (exports,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
27
|
+
var define = (defs, kind) => {
|
|
28
|
+
for(var key in defs) {
|
|
29
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
30
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
define(getters, "get");
|
|
35
|
+
define(values, "value");
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
// webpack/runtime/has_own_property
|
|
@@ -46,19 +49,18 @@ __webpack_require__.r = (exports) => {
|
|
|
46
49
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
50
|
};
|
|
48
51
|
})();
|
|
49
|
-
/************************************************************************/
|
|
50
52
|
var __webpack_exports__ = {};
|
|
51
53
|
// ESM COMPAT FLAG
|
|
52
54
|
__webpack_require__.r(__webpack_exports__);
|
|
53
55
|
|
|
54
56
|
// EXPORTS
|
|
55
57
|
__webpack_require__.d(__webpack_exports__, {
|
|
56
|
-
ModuleFederationPlugin: () => (/* binding */ ModuleFederationPlugin),
|
|
57
58
|
GetPublicPathPlugin: () => (/* binding */ GetPublicPathPlugin),
|
|
59
|
+
ModuleFederationPlugin: () => (/* binding */ ModuleFederationPlugin),
|
|
58
60
|
PLUGIN_NAME: () => (/* binding */ PLUGIN_NAME),
|
|
59
|
-
|
|
61
|
+
TreeShakingSharedPlugin: () => (/* reexport */ external_TreeShakingSharedPlugin_js_namespaceObject.TreeShakingSharedPlugin),
|
|
60
62
|
resolveRspackRuntimeAlias: () => (/* binding */ resolveRspackRuntimeAlias),
|
|
61
|
-
|
|
63
|
+
resolveRspackRuntimeImplementation: () => (/* binding */ resolveRspackRuntimeImplementation)
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
@@ -96,6 +98,9 @@ const external_TreeShakingSharedPlugin_js_namespaceObject = require("./TreeShaki
|
|
|
96
98
|
|
|
97
99
|
|
|
98
100
|
const PLUGIN_NAME = 'RspackModuleFederationPlugin';
|
|
101
|
+
function hasExposes(exposes) {
|
|
102
|
+
return Boolean(exposes && (Array.isArray(exposes) ? exposes.length > 0 : Object.keys(exposes).length > 0));
|
|
103
|
+
}
|
|
99
104
|
function resolveRuntimeEntry(spec, implementation, resolve = require.resolve) {
|
|
100
105
|
const candidates = [
|
|
101
106
|
spec.bundler,
|
|
@@ -133,17 +138,19 @@ function resolveRspackRuntimeAlias(implementation, resolve = require.resolve) {
|
|
|
133
138
|
}
|
|
134
139
|
class ModuleFederationPlugin {
|
|
135
140
|
_patchBundlerConfig(compiler) {
|
|
136
|
-
|
|
137
|
-
const { name, experiments } = this._options;
|
|
141
|
+
const { name, experiments, exposes } = this._options;
|
|
138
142
|
const definePluginOptions = {};
|
|
139
143
|
if (name) {
|
|
140
144
|
definePluginOptions['FEDERATION_BUILD_IDENTIFIER'] = JSON.stringify((0,sdk_namespaceObject.composeKeyWithSeparator)(name, managers_namespaceObject.utils.getBuildVersion()));
|
|
141
145
|
}
|
|
142
146
|
// Add FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN
|
|
143
|
-
const disableSnapshot =
|
|
147
|
+
const disableSnapshot = experiments?.optimization?.disableSnapshot ?? false;
|
|
144
148
|
definePluginOptions['FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN'] = disableSnapshot;
|
|
149
|
+
definePluginOptions['FEDERATION_OPTIMIZE_NO_REMOTE'] = experiments?.optimization?.disableRemote ?? false;
|
|
150
|
+
definePluginOptions['FEDERATION_OPTIMIZE_NO_SHARED'] = experiments?.optimization?.disableShared ?? false;
|
|
151
|
+
definePluginOptions['FEDERATION_HAS_EXPOSES'] = hasExposes(exposes);
|
|
145
152
|
// Determine ENV_TARGET: only if manually specified in experiments.optimization.target
|
|
146
|
-
if (
|
|
153
|
+
if (experiments?.optimization && typeof experiments.optimization === 'object' && experiments.optimization !== null && 'target' in experiments.optimization) {
|
|
147
154
|
const manualTarget = experiments.optimization.target;
|
|
148
155
|
// Ensure the target is one of the expected values before setting
|
|
149
156
|
if (manualTarget === 'web' || manualTarget === 'node') {
|
|
@@ -168,7 +175,6 @@ class ModuleFederationPlugin {
|
|
|
168
175
|
});
|
|
169
176
|
}
|
|
170
177
|
apply(compiler) {
|
|
171
|
-
var _options_experiments, _options_experiments1;
|
|
172
178
|
(0,sdk_namespaceObject.bindLoggerToCompiler)((external_logger_js_default()), compiler, PLUGIN_NAME);
|
|
173
179
|
const { _options: options } = this;
|
|
174
180
|
if (!options.name) {
|
|
@@ -183,14 +189,14 @@ class ModuleFederationPlugin {
|
|
|
183
189
|
}
|
|
184
190
|
// must before ModuleFederationPlugin
|
|
185
191
|
new external_RemoteEntryPlugin_js_namespaceObject.RemoteEntryPlugin(options).apply(compiler);
|
|
186
|
-
if (
|
|
192
|
+
if (options.experiments?.provideExternalRuntime) {
|
|
187
193
|
if (containerManager.enable) {
|
|
188
194
|
throw new Error('You can only set provideExternalRuntime: true in pure consumer which not expose modules.');
|
|
189
195
|
}
|
|
190
196
|
const runtimePlugins = options.runtimePlugins || [];
|
|
191
197
|
options.runtimePlugins = runtimePlugins.concat(require.resolve('@module-federation/inject-external-runtime-core-plugin'));
|
|
192
198
|
}
|
|
193
|
-
if (
|
|
199
|
+
if (options.experiments?.externalRuntime === true) {
|
|
194
200
|
const Externals = compiler.webpack.ExternalsPlugin;
|
|
195
201
|
new Externals(compiler.options.externalsType || 'global', {
|
|
196
202
|
'@module-federation/runtime-core': '_FEDERATION_RUNTIME_CORE'
|
|
@@ -233,7 +239,7 @@ class ModuleFederationPlugin {
|
|
|
233
239
|
});
|
|
234
240
|
if (!disableManifest) {
|
|
235
241
|
this._statsPlugin = new manifest_namespaceObject.StatsPlugin(options, {
|
|
236
|
-
pluginVersion: "2.
|
|
242
|
+
pluginVersion: "2.8.0",
|
|
237
243
|
bundler: 'rspack'
|
|
238
244
|
});
|
|
239
245
|
// @ts-ignore
|
|
@@ -258,22 +264,20 @@ class ModuleFederationPlugin {
|
|
|
258
264
|
const hasBridgeReact = checkBridgeReactInstalled();
|
|
259
265
|
// react bridge plugin
|
|
260
266
|
const shouldEnableBridgePlugin = ()=>{
|
|
261
|
-
var _options_bridge, _options_bridge1, _options_bridge2;
|
|
262
267
|
// Priority 1: Explicit enableBridgeRouter configuration
|
|
263
|
-
if (
|
|
268
|
+
if (options?.bridge?.enableBridgeRouter === true) {
|
|
264
269
|
return true;
|
|
265
270
|
}
|
|
266
271
|
// Priority 2: Explicit disable via enableBridgeRouter:false or disableAlias:true
|
|
267
|
-
if (
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
external_logger_js_default().warn("\u26A0\uFE0F [ModuleFederationPlugin] The `disableAlias` option is deprecated and will be removed in a future version.\n" + ' Please use `enableBridgeRouter: false` instead:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: false // Use this instead of disableAlias: true\n' + ' }\n' + ' }');
|
|
272
|
+
if (options?.bridge?.enableBridgeRouter === false || options?.bridge?.disableAlias === true) {
|
|
273
|
+
if (options?.bridge?.disableAlias === true) {
|
|
274
|
+
external_logger_js_default().warn('⚠️ [ModuleFederationPlugin] The `disableAlias` option is deprecated and will be removed in a future version.\n' + ' Please use `enableBridgeRouter: false` instead:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: false // Use this instead of disableAlias: true\n' + ' }\n' + ' }');
|
|
271
275
|
}
|
|
272
276
|
return false;
|
|
273
277
|
}
|
|
274
278
|
// Priority 3: Automatic detection based on bridge-react installation
|
|
275
279
|
if (hasBridgeReact) {
|
|
276
|
-
external_logger_js_default().info(
|
|
280
|
+
external_logger_js_default().info('💡 [ModuleFederationPlugin] Detected @module-federation/bridge-react in your dependencies.\n' + ' For better control and to avoid future breaking changes, please explicitly set:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: true // Explicitly enable bridge router\n' + ' }\n' + ' }');
|
|
277
281
|
return true;
|
|
278
282
|
}
|
|
279
283
|
return false;
|
|
@@ -285,16 +289,16 @@ class ModuleFederationPlugin {
|
|
|
285
289
|
try {
|
|
286
290
|
const bridgeReactBasePath = external_node_path_default().resolve(compiler.context, 'node_modules/@module-federation/bridge-react/dist/base.es.js');
|
|
287
291
|
if (!external_node_fs_default().existsSync(bridgeReactBasePath)) {
|
|
288
|
-
external_logger_js_default().warn(
|
|
292
|
+
external_logger_js_default().warn('⚠️ [ModuleFederationPlugin] bridge-react /base entry not found, falling back to default entry');
|
|
289
293
|
return;
|
|
290
294
|
}
|
|
291
295
|
compiler.options.resolve.alias = {
|
|
292
296
|
...compiler.options.resolve.alias,
|
|
293
297
|
'@module-federation/bridge-react$': bridgeReactBasePath
|
|
294
298
|
};
|
|
295
|
-
external_logger_js_default().info(
|
|
299
|
+
external_logger_js_default().info('✅ [ModuleFederationPlugin] Router disabled - using /base entry (no react-router-dom)');
|
|
296
300
|
} catch (error) {
|
|
297
|
-
external_logger_js_default().warn(
|
|
301
|
+
external_logger_js_default().warn('⚠️ [ModuleFederationPlugin] Failed to set /base alias, using default entry');
|
|
298
302
|
}
|
|
299
303
|
});
|
|
300
304
|
}
|
|
@@ -383,9 +387,9 @@ exports.PLUGIN_NAME = __webpack_exports__.PLUGIN_NAME;
|
|
|
383
387
|
exports.TreeShakingSharedPlugin = __webpack_exports__.TreeShakingSharedPlugin;
|
|
384
388
|
exports.resolveRspackRuntimeAlias = __webpack_exports__.resolveRspackRuntimeAlias;
|
|
385
389
|
exports.resolveRspackRuntimeImplementation = __webpack_exports__.resolveRspackRuntimeImplementation;
|
|
386
|
-
for(var
|
|
387
|
-
if(["GetPublicPathPlugin","ModuleFederationPlugin","PLUGIN_NAME","TreeShakingSharedPlugin","resolveRspackRuntimeAlias","resolveRspackRuntimeImplementation"].indexOf(
|
|
388
|
-
exports[
|
|
390
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
391
|
+
if(["GetPublicPathPlugin","ModuleFederationPlugin","PLUGIN_NAME","TreeShakingSharedPlugin","resolveRspackRuntimeAlias","resolveRspackRuntimeImplementation"].indexOf(__rspack_i) === -1) {
|
|
392
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
389
393
|
}
|
|
390
394
|
}
|
|
391
395
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7,29 +7,17 @@ import node_path from "node:path";
|
|
|
7
7
|
import node_fs from "node:fs";
|
|
8
8
|
import { RemoteEntryPlugin } from "./RemoteEntryPlugin.mjs";
|
|
9
9
|
import logger from "./logger.mjs";
|
|
10
|
-
import { TreeShakingSharedPlugin } from "./TreeShakingSharedPlugin.mjs";
|
|
11
10
|
|
|
12
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
13
11
|
|
|
14
|
-
;// CONCATENATED MODULE: external "@module-federation/manifest"
|
|
15
12
|
|
|
16
|
-
;// CONCATENATED MODULE: external "@module-federation/managers"
|
|
17
13
|
|
|
18
|
-
;// CONCATENATED MODULE: external "@module-federation/dts-plugin"
|
|
19
14
|
|
|
20
|
-
;// CONCATENATED MODULE: external "@module-federation/bridge-react-webpack-plugin"
|
|
21
15
|
|
|
22
|
-
;// CONCATENATED MODULE: external "node:path"
|
|
23
16
|
|
|
24
|
-
;// CONCATENATED MODULE: external "node:fs"
|
|
25
17
|
|
|
26
|
-
;// CONCATENATED MODULE: external "./RemoteEntryPlugin.mjs"
|
|
27
18
|
|
|
28
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
29
19
|
|
|
30
|
-
;// CONCATENATED MODULE: external "./TreeShakingSharedPlugin.mjs"
|
|
31
20
|
|
|
32
|
-
;// CONCATENATED MODULE: ./src/ModuleFederationPlugin.ts
|
|
33
21
|
|
|
34
22
|
|
|
35
23
|
|
|
@@ -40,6 +28,9 @@ import { TreeShakingSharedPlugin } from "./TreeShakingSharedPlugin.mjs";
|
|
|
40
28
|
|
|
41
29
|
|
|
42
30
|
const PLUGIN_NAME = 'RspackModuleFederationPlugin';
|
|
31
|
+
function hasExposes(exposes) {
|
|
32
|
+
return Boolean(exposes && (Array.isArray(exposes) ? exposes.length > 0 : Object.keys(exposes).length > 0));
|
|
33
|
+
}
|
|
43
34
|
function resolveRuntimeEntry(spec, implementation, resolve = require.resolve) {
|
|
44
35
|
const candidates = [
|
|
45
36
|
spec.bundler,
|
|
@@ -77,17 +68,19 @@ function resolveRspackRuntimeAlias(implementation, resolve = require.resolve) {
|
|
|
77
68
|
}
|
|
78
69
|
class ModuleFederationPlugin {
|
|
79
70
|
_patchBundlerConfig(compiler) {
|
|
80
|
-
|
|
81
|
-
const { name, experiments } = this._options;
|
|
71
|
+
const { name, experiments, exposes } = this._options;
|
|
82
72
|
const definePluginOptions = {};
|
|
83
73
|
if (name) {
|
|
84
74
|
definePluginOptions['FEDERATION_BUILD_IDENTIFIER'] = JSON.stringify(composeKeyWithSeparator(name, utils.getBuildVersion()));
|
|
85
75
|
}
|
|
86
76
|
// Add FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN
|
|
87
|
-
const disableSnapshot =
|
|
77
|
+
const disableSnapshot = experiments?.optimization?.disableSnapshot ?? false;
|
|
88
78
|
definePluginOptions['FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN'] = disableSnapshot;
|
|
79
|
+
definePluginOptions['FEDERATION_OPTIMIZE_NO_REMOTE'] = experiments?.optimization?.disableRemote ?? false;
|
|
80
|
+
definePluginOptions['FEDERATION_OPTIMIZE_NO_SHARED'] = experiments?.optimization?.disableShared ?? false;
|
|
81
|
+
definePluginOptions['FEDERATION_HAS_EXPOSES'] = hasExposes(exposes);
|
|
89
82
|
// Determine ENV_TARGET: only if manually specified in experiments.optimization.target
|
|
90
|
-
if (
|
|
83
|
+
if (experiments?.optimization && typeof experiments.optimization === 'object' && experiments.optimization !== null && 'target' in experiments.optimization) {
|
|
91
84
|
const manualTarget = experiments.optimization.target;
|
|
92
85
|
// Ensure the target is one of the expected values before setting
|
|
93
86
|
if (manualTarget === 'web' || manualTarget === 'node') {
|
|
@@ -112,7 +105,6 @@ class ModuleFederationPlugin {
|
|
|
112
105
|
});
|
|
113
106
|
}
|
|
114
107
|
apply(compiler) {
|
|
115
|
-
var _options_experiments, _options_experiments1;
|
|
116
108
|
bindLoggerToCompiler(logger, compiler, PLUGIN_NAME);
|
|
117
109
|
const { _options: options } = this;
|
|
118
110
|
if (!options.name) {
|
|
@@ -127,14 +119,14 @@ class ModuleFederationPlugin {
|
|
|
127
119
|
}
|
|
128
120
|
// must before ModuleFederationPlugin
|
|
129
121
|
new RemoteEntryPlugin(options).apply(compiler);
|
|
130
|
-
if (
|
|
122
|
+
if (options.experiments?.provideExternalRuntime) {
|
|
131
123
|
if (containerManager.enable) {
|
|
132
124
|
throw new Error('You can only set provideExternalRuntime: true in pure consumer which not expose modules.');
|
|
133
125
|
}
|
|
134
126
|
const runtimePlugins = options.runtimePlugins || [];
|
|
135
127
|
options.runtimePlugins = runtimePlugins.concat(require.resolve('@module-federation/inject-external-runtime-core-plugin'));
|
|
136
128
|
}
|
|
137
|
-
if (
|
|
129
|
+
if (options.experiments?.externalRuntime === true) {
|
|
138
130
|
const Externals = compiler.webpack.ExternalsPlugin;
|
|
139
131
|
new Externals(compiler.options.externalsType || 'global', {
|
|
140
132
|
'@module-federation/runtime-core': '_FEDERATION_RUNTIME_CORE'
|
|
@@ -177,7 +169,7 @@ class ModuleFederationPlugin {
|
|
|
177
169
|
});
|
|
178
170
|
if (!disableManifest) {
|
|
179
171
|
this._statsPlugin = new StatsPlugin(options, {
|
|
180
|
-
pluginVersion: "2.
|
|
172
|
+
pluginVersion: "2.8.0",
|
|
181
173
|
bundler: 'rspack'
|
|
182
174
|
});
|
|
183
175
|
// @ts-ignore
|
|
@@ -202,22 +194,20 @@ class ModuleFederationPlugin {
|
|
|
202
194
|
const hasBridgeReact = checkBridgeReactInstalled();
|
|
203
195
|
// react bridge plugin
|
|
204
196
|
const shouldEnableBridgePlugin = ()=>{
|
|
205
|
-
var _options_bridge, _options_bridge1, _options_bridge2;
|
|
206
197
|
// Priority 1: Explicit enableBridgeRouter configuration
|
|
207
|
-
if (
|
|
198
|
+
if (options?.bridge?.enableBridgeRouter === true) {
|
|
208
199
|
return true;
|
|
209
200
|
}
|
|
210
201
|
// Priority 2: Explicit disable via enableBridgeRouter:false or disableAlias:true
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
logger.warn("\u26A0\uFE0F [ModuleFederationPlugin] The `disableAlias` option is deprecated and will be removed in a future version.\n" + ' Please use `enableBridgeRouter: false` instead:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: false // Use this instead of disableAlias: true\n' + ' }\n' + ' }');
|
|
202
|
+
if (options?.bridge?.enableBridgeRouter === false || options?.bridge?.disableAlias === true) {
|
|
203
|
+
if (options?.bridge?.disableAlias === true) {
|
|
204
|
+
logger.warn('⚠️ [ModuleFederationPlugin] The `disableAlias` option is deprecated and will be removed in a future version.\n' + ' Please use `enableBridgeRouter: false` instead:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: false // Use this instead of disableAlias: true\n' + ' }\n' + ' }');
|
|
215
205
|
}
|
|
216
206
|
return false;
|
|
217
207
|
}
|
|
218
208
|
// Priority 3: Automatic detection based on bridge-react installation
|
|
219
209
|
if (hasBridgeReact) {
|
|
220
|
-
logger.info(
|
|
210
|
+
logger.info('💡 [ModuleFederationPlugin] Detected @module-federation/bridge-react in your dependencies.\n' + ' For better control and to avoid future breaking changes, please explicitly set:\n' + ' {\n' + ' bridge: {\n' + ' enableBridgeRouter: true // Explicitly enable bridge router\n' + ' }\n' + ' }');
|
|
221
211
|
return true;
|
|
222
212
|
}
|
|
223
213
|
return false;
|
|
@@ -229,16 +219,16 @@ class ModuleFederationPlugin {
|
|
|
229
219
|
try {
|
|
230
220
|
const bridgeReactBasePath = node_path.resolve(compiler.context, 'node_modules/@module-federation/bridge-react/dist/base.es.js');
|
|
231
221
|
if (!node_fs.existsSync(bridgeReactBasePath)) {
|
|
232
|
-
logger.warn(
|
|
222
|
+
logger.warn('⚠️ [ModuleFederationPlugin] bridge-react /base entry not found, falling back to default entry');
|
|
233
223
|
return;
|
|
234
224
|
}
|
|
235
225
|
compiler.options.resolve.alias = {
|
|
236
226
|
...compiler.options.resolve.alias,
|
|
237
227
|
'@module-federation/bridge-react$': bridgeReactBasePath
|
|
238
228
|
};
|
|
239
|
-
logger.info(
|
|
229
|
+
logger.info('✅ [ModuleFederationPlugin] Router disabled - using /base entry (no react-router-dom)');
|
|
240
230
|
} catch (error) {
|
|
241
|
-
logger.warn(
|
|
231
|
+
logger.warn('⚠️ [ModuleFederationPlugin] Failed to set /base alias, using default entry');
|
|
242
232
|
}
|
|
243
233
|
});
|
|
244
234
|
}
|
|
@@ -321,4 +311,5 @@ class ModuleFederationPlugin {
|
|
|
321
311
|
const GetPublicPathPlugin = RemoteEntryPlugin;
|
|
322
312
|
|
|
323
313
|
|
|
324
|
-
export { GetPublicPathPlugin, ModuleFederationPlugin, PLUGIN_NAME,
|
|
314
|
+
export { GetPublicPathPlugin, ModuleFederationPlugin, PLUGIN_NAME, resolveRspackRuntimeAlias, resolveRspackRuntimeImplementation };
|
|
315
|
+
export { TreeShakingSharedPlugin } from "./TreeShakingSharedPlugin.mjs";
|
|
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/compat_get_default_export
|
|
14
13
|
(() => {
|
|
15
14
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
|
|
|
24
23
|
})();
|
|
25
24
|
// webpack/runtime/define_property_getters
|
|
26
25
|
(() => {
|
|
27
|
-
__webpack_require__.d = (exports,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
27
|
+
var define = (defs, kind) => {
|
|
28
|
+
for(var key in defs) {
|
|
29
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
30
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
define(getters, "get");
|
|
35
|
+
define(values, "value");
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
// webpack/runtime/has_own_property
|
|
@@ -46,7 +49,6 @@ __webpack_require__.r = (exports) => {
|
|
|
46
49
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
50
|
};
|
|
48
51
|
})();
|
|
49
|
-
/************************************************************************/
|
|
50
52
|
var __webpack_exports__ = {};
|
|
51
53
|
// ESM COMPAT FLAG
|
|
52
54
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -119,9 +121,9 @@ class RemoteEntryPlugin {
|
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
exports.RemoteEntryPlugin = __webpack_exports__.RemoteEntryPlugin;
|
|
122
|
-
for(var
|
|
123
|
-
if(["RemoteEntryPlugin"].indexOf(
|
|
124
|
-
exports[
|
|
124
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
125
|
+
if(["RemoteEntryPlugin"].indexOf(__rspack_i) === -1) {
|
|
126
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { ContainerManager } from "@module-federation/managers";
|
|
2
2
|
import logger from "./logger.mjs";
|
|
3
3
|
|
|
4
|
-
;// CONCATENATED MODULE: external "@module-federation/managers"
|
|
5
4
|
|
|
6
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
7
5
|
|
|
8
|
-
;// CONCATENATED MODULE: ./src/RemoteEntryPlugin.ts
|
|
9
6
|
|
|
10
7
|
|
|
11
8
|
// @ts-ignore
|
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,13 +37,8 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
__webpack_require__.r(__webpack_exports__);
|
|
40
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
41
|
-
PLUGIN_NAME: () => (PLUGIN_NAME),
|
|
42
|
-
TreeShakingSharedPlugin: () => (TreeShakingSharedPlugin)
|
|
43
|
-
});
|
|
44
42
|
const PLUGIN_NAME = 'RspackTreeShakingSharedPlugin';
|
|
45
43
|
class TreeShakingSharedPlugin {
|
|
46
44
|
apply(compiler) {
|
|
@@ -53,11 +51,17 @@ class TreeShakingSharedPlugin {
|
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
|
|
54
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
55
|
+
TreeShakingSharedPlugin: () => (TreeShakingSharedPlugin)
|
|
56
|
+
}, {
|
|
57
|
+
PLUGIN_NAME: PLUGIN_NAME
|
|
58
|
+
});
|
|
59
|
+
|
|
56
60
|
exports.PLUGIN_NAME = __webpack_exports__.PLUGIN_NAME;
|
|
57
61
|
exports.TreeShakingSharedPlugin = __webpack_exports__.TreeShakingSharedPlugin;
|
|
58
|
-
for(var
|
|
59
|
-
if(["PLUGIN_NAME","TreeShakingSharedPlugin"].indexOf(
|
|
60
|
-
exports[
|
|
62
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
63
|
+
if(["PLUGIN_NAME","TreeShakingSharedPlugin"].indexOf(__rspack_i) === -1) {
|
|
64
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ModuleFederationPlugin, PLUGIN_NAME } from './ModuleFederationPlugin';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { container } from '@rspack/core';
|
|
3
|
+
export declare const ContainerPlugin: typeof container.ContainerPlugin;
|
|
4
|
+
export declare const ContainerReferencePlugin: typeof container.ContainerReferencePlugin;
|
package/dist/index.js
CHANGED
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,17 +37,16 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
// ESM COMPAT FLAG
|
|
40
42
|
__webpack_require__.r(__webpack_exports__);
|
|
41
43
|
|
|
42
44
|
// EXPORTS
|
|
43
45
|
__webpack_require__.d(__webpack_exports__, {
|
|
44
|
-
ModuleFederationPlugin: () => (/* reexport */ external_ModuleFederationPlugin_js_namespaceObject.ModuleFederationPlugin),
|
|
45
|
-
PLUGIN_NAME: () => (/* reexport */ external_ModuleFederationPlugin_js_namespaceObject.PLUGIN_NAME),
|
|
46
46
|
ContainerPlugin: () => (/* binding */ ContainerPlugin),
|
|
47
|
-
ContainerReferencePlugin: () => (/* binding */ ContainerReferencePlugin)
|
|
47
|
+
ContainerReferencePlugin: () => (/* binding */ ContainerReferencePlugin),
|
|
48
|
+
ModuleFederationPlugin: () => (/* reexport */ external_ModuleFederationPlugin_js_namespaceObject.ModuleFederationPlugin),
|
|
49
|
+
PLUGIN_NAME: () => (/* reexport */ external_ModuleFederationPlugin_js_namespaceObject.PLUGIN_NAME)
|
|
48
50
|
});
|
|
49
51
|
|
|
50
52
|
;// CONCATENATED MODULE: external "./ModuleFederationPlugin.js"
|
|
@@ -61,9 +63,9 @@ exports.ContainerPlugin = __webpack_exports__.ContainerPlugin;
|
|
|
61
63
|
exports.ContainerReferencePlugin = __webpack_exports__.ContainerReferencePlugin;
|
|
62
64
|
exports.ModuleFederationPlugin = __webpack_exports__.ModuleFederationPlugin;
|
|
63
65
|
exports.PLUGIN_NAME = __webpack_exports__.PLUGIN_NAME;
|
|
64
|
-
for(var
|
|
65
|
-
if(["ContainerPlugin","ContainerReferencePlugin","ModuleFederationPlugin","PLUGIN_NAME"].indexOf(
|
|
66
|
-
exports[
|
|
66
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
67
|
+
if(["ContainerPlugin","ContainerReferencePlugin","ModuleFederationPlugin","PLUGIN_NAME"].indexOf(__rspack_i) === -1) {
|
|
68
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { ModuleFederationPlugin, PLUGIN_NAME } from "./ModuleFederationPlugin.mjs";
|
|
2
1
|
import { container } from "@rspack/core";
|
|
3
2
|
|
|
4
|
-
;// CONCATENATED MODULE: external "./ModuleFederationPlugin.mjs"
|
|
5
3
|
|
|
6
|
-
;// CONCATENATED MODULE: external "@rspack/core"
|
|
7
4
|
|
|
8
|
-
;// CONCATENATED MODULE: ./src/index.ts
|
|
9
5
|
|
|
10
6
|
|
|
11
7
|
const ContainerPlugin = container.ContainerPlugin;
|
|
12
8
|
const ContainerReferencePlugin = container.ContainerReferencePlugin;
|
|
13
9
|
|
|
14
|
-
export { ContainerPlugin, ContainerReferencePlugin
|
|
10
|
+
export { ContainerPlugin, ContainerReferencePlugin };
|
|
11
|
+
export { ModuleFederationPlugin, PLUGIN_NAME } from "./ModuleFederationPlugin.mjs";
|
package/dist/logger.js
CHANGED
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,7 +37,6 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
// ESM COMPAT FLAG
|
|
40
42
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -51,12 +53,12 @@ const sdk_namespaceObject = require("@module-federation/sdk");
|
|
|
51
53
|
const isLoggerFactory = (candidate)=>typeof candidate === 'function';
|
|
52
54
|
const createBundlerLogger = isLoggerFactory(sdk_namespaceObject.createInfrastructureLogger) ? (prefix)=>(0,sdk_namespaceObject.createInfrastructureLogger)(prefix) : sdk_namespaceObject.createLogger;
|
|
53
55
|
const logger = createBundlerLogger('[ Module Federation Rspack Plugin ]');
|
|
54
|
-
/*
|
|
56
|
+
/* export default */ const src_logger = (logger);
|
|
55
57
|
|
|
56
58
|
exports["default"] = __webpack_exports__["default"];
|
|
57
|
-
for(var
|
|
58
|
-
if(["default"].indexOf(
|
|
59
|
-
exports[
|
|
59
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
60
|
+
if(["default"].indexOf(__rspack_i) === -1) {
|
|
61
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/logger.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { createInfrastructureLogger, createLogger } from "@module-federation/sdk";
|
|
2
2
|
|
|
3
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
4
3
|
|
|
5
|
-
;// CONCATENATED MODULE: ./src/logger.ts
|
|
6
4
|
|
|
7
5
|
const isLoggerFactory = (candidate)=>typeof candidate === 'function';
|
|
8
6
|
const createBundlerLogger = isLoggerFactory(createInfrastructureLogger) ? (prefix)=>createInfrastructureLogger(prefix) : createLogger;
|
|
9
7
|
const logger = createBundlerLogger('[ Module Federation Rspack Plugin ]');
|
|
10
|
-
/*
|
|
8
|
+
/* export default */ const src_logger = (logger);
|
|
11
9
|
|
|
12
|
-
export
|
|
10
|
+
export default src_logger;
|
package/dist/plugin.js
CHANGED
|
@@ -7,13 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"./ModuleFederationPlugin"
|
|
10
|
+
"./ModuleFederationPlugin"(module) {
|
|
11
11
|
module.exports = require("./ModuleFederationPlugin.js");
|
|
12
12
|
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
14
|
|
|
15
15
|
});
|
|
16
|
-
/************************************************************************/
|
|
17
16
|
// The module cache
|
|
18
17
|
var __webpack_module_cache__ = {};
|
|
19
18
|
|
|
@@ -37,7 +36,6 @@ return module.exports;
|
|
|
37
36
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
/************************************************************************/
|
|
41
39
|
// webpack/runtime/compat_get_default_export
|
|
42
40
|
(() => {
|
|
43
41
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -52,12 +50,16 @@ __webpack_require__.n = (module) => {
|
|
|
52
50
|
})();
|
|
53
51
|
// webpack/runtime/define_property_getters
|
|
54
52
|
(() => {
|
|
55
|
-
__webpack_require__.d = (exports,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
54
|
+
var define = (defs, kind) => {
|
|
55
|
+
for(var key in defs) {
|
|
56
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
57
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
define(getters, "get");
|
|
62
|
+
define(values, "value");
|
|
61
63
|
};
|
|
62
64
|
})();
|
|
63
65
|
// webpack/runtime/has_own_property
|
|
@@ -74,22 +76,21 @@ __webpack_require__.r = (exports) => {
|
|
|
74
76
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
75
77
|
};
|
|
76
78
|
})();
|
|
77
|
-
/************************************************************************/
|
|
78
79
|
var __webpack_exports__ = {};
|
|
79
80
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
80
81
|
(() => {
|
|
81
82
|
__webpack_require__.r(__webpack_exports__);
|
|
82
|
-
/*
|
|
83
|
-
/*
|
|
83
|
+
/* import */ var _ModuleFederationPlugin__rspack_import_0 = __webpack_require__("./ModuleFederationPlugin");
|
|
84
|
+
/* import */ var _ModuleFederationPlugin__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_ModuleFederationPlugin__rspack_import_0);
|
|
84
85
|
|
|
85
|
-
/*
|
|
86
|
-
/*
|
|
87
|
-
/*
|
|
86
|
+
/* reexport */ var __rspack_reexport = {};
|
|
87
|
+
/* reexport */ for( const __rspack_import_key in _ModuleFederationPlugin__rspack_import_0) if(__rspack_import_key !== "default") __rspack_reexport[__rspack_import_key] =() => _ModuleFederationPlugin__rspack_import_0[__rspack_import_key]
|
|
88
|
+
/* reexport */ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
})();
|
|
91
92
|
|
|
92
|
-
for(var
|
|
93
|
-
exports[
|
|
93
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
94
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
94
95
|
}
|
|
95
96
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/plugin.mjs
CHANGED
|
@@ -7,13 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"./RemoteEntryPlugin"
|
|
10
|
+
"./RemoteEntryPlugin"(module) {
|
|
11
11
|
module.exports = require("./RemoteEntryPlugin.js");
|
|
12
12
|
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
14
|
|
|
15
15
|
});
|
|
16
|
-
/************************************************************************/
|
|
17
16
|
// The module cache
|
|
18
17
|
var __webpack_module_cache__ = {};
|
|
19
18
|
|
|
@@ -37,7 +36,6 @@ return module.exports;
|
|
|
37
36
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
/************************************************************************/
|
|
41
39
|
// webpack/runtime/compat_get_default_export
|
|
42
40
|
(() => {
|
|
43
41
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -52,12 +50,16 @@ __webpack_require__.n = (module) => {
|
|
|
52
50
|
})();
|
|
53
51
|
// webpack/runtime/define_property_getters
|
|
54
52
|
(() => {
|
|
55
|
-
__webpack_require__.d = (exports,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
54
|
+
var define = (defs, kind) => {
|
|
55
|
+
for(var key in defs) {
|
|
56
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
57
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
define(getters, "get");
|
|
62
|
+
define(values, "value");
|
|
61
63
|
};
|
|
62
64
|
})();
|
|
63
65
|
// webpack/runtime/has_own_property
|
|
@@ -74,22 +76,21 @@ __webpack_require__.r = (exports) => {
|
|
|
74
76
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
75
77
|
};
|
|
76
78
|
})();
|
|
77
|
-
/************************************************************************/
|
|
78
79
|
var __webpack_exports__ = {};
|
|
79
80
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
80
81
|
(() => {
|
|
81
82
|
__webpack_require__.r(__webpack_exports__);
|
|
82
|
-
/*
|
|
83
|
-
/*
|
|
83
|
+
/* import */ var _RemoteEntryPlugin__rspack_import_0 = __webpack_require__("./RemoteEntryPlugin");
|
|
84
|
+
/* import */ var _RemoteEntryPlugin__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_RemoteEntryPlugin__rspack_import_0);
|
|
84
85
|
|
|
85
|
-
/*
|
|
86
|
-
/*
|
|
87
|
-
/*
|
|
86
|
+
/* reexport */ var __rspack_reexport = {};
|
|
87
|
+
/* reexport */ for( const __rspack_import_key in _RemoteEntryPlugin__rspack_import_0) if(__rspack_import_key !== "default") __rspack_reexport[__rspack_import_key] =() => _RemoteEntryPlugin__rspack_import_0[__rspack_import_key]
|
|
88
|
+
/* reexport */ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
})();
|
|
91
92
|
|
|
92
|
-
for(var
|
|
93
|
-
exports[
|
|
93
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
94
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
94
95
|
}
|
|
95
96
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspack",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Module Federation",
|
|
@@ -24,16 +24,17 @@
|
|
|
24
24
|
"module": "./dist/index.mjs",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@module-federation/bridge-react-webpack-plugin": "2.
|
|
28
|
-
"@module-federation/
|
|
29
|
-
"@module-federation/
|
|
30
|
-
"@module-federation/
|
|
31
|
-
"@module-federation/
|
|
32
|
-
"@module-federation/sdk": "2.
|
|
33
|
-
"@module-federation/
|
|
27
|
+
"@module-federation/bridge-react-webpack-plugin": "2.8.0",
|
|
28
|
+
"@module-federation/dts-plugin": "2.8.0",
|
|
29
|
+
"@module-federation/runtime-tools": "2.8.0",
|
|
30
|
+
"@module-federation/manifest": "2.8.0",
|
|
31
|
+
"@module-federation/managers": "2.8.0",
|
|
32
|
+
"@module-federation/sdk": "2.8.0",
|
|
33
|
+
"@module-federation/inject-external-runtime-core-plugin": "2.8.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@rspack/core": "^1.0.2"
|
|
36
|
+
"@rspack/core": "^1.0.2",
|
|
37
|
+
"typescript": "7.0.2"
|
|
37
38
|
},
|
|
38
39
|
"exports": {
|
|
39
40
|
".": {
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
84
|
-
"typescript": "^4.9.0 || ^5.0.0",
|
|
85
|
+
"typescript": "^4.9.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
85
86
|
"vue-tsc": ">=1.0.24",
|
|
86
87
|
"@rspack/core": "^0.7.0 || ^1.0.0 || ^2.0.0-0"
|
|
87
88
|
},
|