@module-federation/rspack 2.5.1 → 2.7.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 +29 -31
- package/dist/ModuleFederationPlugin.mjs +15 -30
- 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.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"
|
|
@@ -133,17 +135,16 @@ function resolveRspackRuntimeAlias(implementation, resolve = require.resolve) {
|
|
|
133
135
|
}
|
|
134
136
|
class ModuleFederationPlugin {
|
|
135
137
|
_patchBundlerConfig(compiler) {
|
|
136
|
-
var _experiments_optimization;
|
|
137
138
|
const { name, experiments } = this._options;
|
|
138
139
|
const definePluginOptions = {};
|
|
139
140
|
if (name) {
|
|
140
141
|
definePluginOptions['FEDERATION_BUILD_IDENTIFIER'] = JSON.stringify((0,sdk_namespaceObject.composeKeyWithSeparator)(name, managers_namespaceObject.utils.getBuildVersion()));
|
|
141
142
|
}
|
|
142
143
|
// Add FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN
|
|
143
|
-
const disableSnapshot =
|
|
144
|
+
const disableSnapshot = experiments?.optimization?.disableSnapshot ?? false;
|
|
144
145
|
definePluginOptions['FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN'] = disableSnapshot;
|
|
145
146
|
// Determine ENV_TARGET: only if manually specified in experiments.optimization.target
|
|
146
|
-
if (
|
|
147
|
+
if (experiments?.optimization && typeof experiments.optimization === 'object' && experiments.optimization !== null && 'target' in experiments.optimization) {
|
|
147
148
|
const manualTarget = experiments.optimization.target;
|
|
148
149
|
// Ensure the target is one of the expected values before setting
|
|
149
150
|
if (manualTarget === 'web' || manualTarget === 'node') {
|
|
@@ -168,7 +169,6 @@ class ModuleFederationPlugin {
|
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
171
|
apply(compiler) {
|
|
171
|
-
var _options_experiments, _options_experiments1;
|
|
172
172
|
(0,sdk_namespaceObject.bindLoggerToCompiler)((external_logger_js_default()), compiler, PLUGIN_NAME);
|
|
173
173
|
const { _options: options } = this;
|
|
174
174
|
if (!options.name) {
|
|
@@ -183,14 +183,14 @@ class ModuleFederationPlugin {
|
|
|
183
183
|
}
|
|
184
184
|
// must before ModuleFederationPlugin
|
|
185
185
|
new external_RemoteEntryPlugin_js_namespaceObject.RemoteEntryPlugin(options).apply(compiler);
|
|
186
|
-
if (
|
|
186
|
+
if (options.experiments?.provideExternalRuntime) {
|
|
187
187
|
if (containerManager.enable) {
|
|
188
188
|
throw new Error('You can only set provideExternalRuntime: true in pure consumer which not expose modules.');
|
|
189
189
|
}
|
|
190
190
|
const runtimePlugins = options.runtimePlugins || [];
|
|
191
191
|
options.runtimePlugins = runtimePlugins.concat(require.resolve('@module-federation/inject-external-runtime-core-plugin'));
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
193
|
+
if (options.experiments?.externalRuntime === true) {
|
|
194
194
|
const Externals = compiler.webpack.ExternalsPlugin;
|
|
195
195
|
new Externals(compiler.options.externalsType || 'global', {
|
|
196
196
|
'@module-federation/runtime-core': '_FEDERATION_RUNTIME_CORE'
|
|
@@ -233,7 +233,7 @@ class ModuleFederationPlugin {
|
|
|
233
233
|
});
|
|
234
234
|
if (!disableManifest) {
|
|
235
235
|
this._statsPlugin = new manifest_namespaceObject.StatsPlugin(options, {
|
|
236
|
-
pluginVersion: "2.
|
|
236
|
+
pluginVersion: "2.7.0",
|
|
237
237
|
bundler: 'rspack'
|
|
238
238
|
});
|
|
239
239
|
// @ts-ignore
|
|
@@ -258,22 +258,20 @@ class ModuleFederationPlugin {
|
|
|
258
258
|
const hasBridgeReact = checkBridgeReactInstalled();
|
|
259
259
|
// react bridge plugin
|
|
260
260
|
const shouldEnableBridgePlugin = ()=>{
|
|
261
|
-
var _options_bridge, _options_bridge1, _options_bridge2;
|
|
262
261
|
// Priority 1: Explicit enableBridgeRouter configuration
|
|
263
|
-
if (
|
|
262
|
+
if (options?.bridge?.enableBridgeRouter === true) {
|
|
264
263
|
return true;
|
|
265
264
|
}
|
|
266
265
|
// 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' + ' }');
|
|
266
|
+
if (options?.bridge?.enableBridgeRouter === false || options?.bridge?.disableAlias === true) {
|
|
267
|
+
if (options?.bridge?.disableAlias === true) {
|
|
268
|
+
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
269
|
}
|
|
272
270
|
return false;
|
|
273
271
|
}
|
|
274
272
|
// Priority 3: Automatic detection based on bridge-react installation
|
|
275
273
|
if (hasBridgeReact) {
|
|
276
|
-
external_logger_js_default().info(
|
|
274
|
+
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
275
|
return true;
|
|
278
276
|
}
|
|
279
277
|
return false;
|
|
@@ -285,16 +283,16 @@ class ModuleFederationPlugin {
|
|
|
285
283
|
try {
|
|
286
284
|
const bridgeReactBasePath = external_node_path_default().resolve(compiler.context, 'node_modules/@module-federation/bridge-react/dist/base.es.js');
|
|
287
285
|
if (!external_node_fs_default().existsSync(bridgeReactBasePath)) {
|
|
288
|
-
external_logger_js_default().warn(
|
|
286
|
+
external_logger_js_default().warn('⚠️ [ModuleFederationPlugin] bridge-react /base entry not found, falling back to default entry');
|
|
289
287
|
return;
|
|
290
288
|
}
|
|
291
289
|
compiler.options.resolve.alias = {
|
|
292
290
|
...compiler.options.resolve.alias,
|
|
293
291
|
'@module-federation/bridge-react$': bridgeReactBasePath
|
|
294
292
|
};
|
|
295
|
-
external_logger_js_default().info(
|
|
293
|
+
external_logger_js_default().info('✅ [ModuleFederationPlugin] Router disabled - using /base entry (no react-router-dom)');
|
|
296
294
|
} catch (error) {
|
|
297
|
-
external_logger_js_default().warn(
|
|
295
|
+
external_logger_js_default().warn('⚠️ [ModuleFederationPlugin] Failed to set /base alias, using default entry');
|
|
298
296
|
}
|
|
299
297
|
});
|
|
300
298
|
}
|
|
@@ -383,9 +381,9 @@ exports.PLUGIN_NAME = __webpack_exports__.PLUGIN_NAME;
|
|
|
383
381
|
exports.TreeShakingSharedPlugin = __webpack_exports__.TreeShakingSharedPlugin;
|
|
384
382
|
exports.resolveRspackRuntimeAlias = __webpack_exports__.resolveRspackRuntimeAlias;
|
|
385
383
|
exports.resolveRspackRuntimeImplementation = __webpack_exports__.resolveRspackRuntimeImplementation;
|
|
386
|
-
for(var
|
|
387
|
-
if(["GetPublicPathPlugin","ModuleFederationPlugin","PLUGIN_NAME","TreeShakingSharedPlugin","resolveRspackRuntimeAlias","resolveRspackRuntimeImplementation"].indexOf(
|
|
388
|
-
exports[
|
|
384
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
385
|
+
if(["GetPublicPathPlugin","ModuleFederationPlugin","PLUGIN_NAME","TreeShakingSharedPlugin","resolveRspackRuntimeAlias","resolveRspackRuntimeImplementation"].indexOf(__rspack_i) === -1) {
|
|
386
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
389
387
|
}
|
|
390
388
|
}
|
|
391
389
|
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
|
|
|
@@ -77,17 +65,16 @@ function resolveRspackRuntimeAlias(implementation, resolve = require.resolve) {
|
|
|
77
65
|
}
|
|
78
66
|
class ModuleFederationPlugin {
|
|
79
67
|
_patchBundlerConfig(compiler) {
|
|
80
|
-
var _experiments_optimization;
|
|
81
68
|
const { name, experiments } = this._options;
|
|
82
69
|
const definePluginOptions = {};
|
|
83
70
|
if (name) {
|
|
84
71
|
definePluginOptions['FEDERATION_BUILD_IDENTIFIER'] = JSON.stringify(composeKeyWithSeparator(name, utils.getBuildVersion()));
|
|
85
72
|
}
|
|
86
73
|
// Add FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN
|
|
87
|
-
const disableSnapshot =
|
|
74
|
+
const disableSnapshot = experiments?.optimization?.disableSnapshot ?? false;
|
|
88
75
|
definePluginOptions['FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN'] = disableSnapshot;
|
|
89
76
|
// Determine ENV_TARGET: only if manually specified in experiments.optimization.target
|
|
90
|
-
if (
|
|
77
|
+
if (experiments?.optimization && typeof experiments.optimization === 'object' && experiments.optimization !== null && 'target' in experiments.optimization) {
|
|
91
78
|
const manualTarget = experiments.optimization.target;
|
|
92
79
|
// Ensure the target is one of the expected values before setting
|
|
93
80
|
if (manualTarget === 'web' || manualTarget === 'node') {
|
|
@@ -112,7 +99,6 @@ class ModuleFederationPlugin {
|
|
|
112
99
|
});
|
|
113
100
|
}
|
|
114
101
|
apply(compiler) {
|
|
115
|
-
var _options_experiments, _options_experiments1;
|
|
116
102
|
bindLoggerToCompiler(logger, compiler, PLUGIN_NAME);
|
|
117
103
|
const { _options: options } = this;
|
|
118
104
|
if (!options.name) {
|
|
@@ -127,14 +113,14 @@ class ModuleFederationPlugin {
|
|
|
127
113
|
}
|
|
128
114
|
// must before ModuleFederationPlugin
|
|
129
115
|
new RemoteEntryPlugin(options).apply(compiler);
|
|
130
|
-
if (
|
|
116
|
+
if (options.experiments?.provideExternalRuntime) {
|
|
131
117
|
if (containerManager.enable) {
|
|
132
118
|
throw new Error('You can only set provideExternalRuntime: true in pure consumer which not expose modules.');
|
|
133
119
|
}
|
|
134
120
|
const runtimePlugins = options.runtimePlugins || [];
|
|
135
121
|
options.runtimePlugins = runtimePlugins.concat(require.resolve('@module-federation/inject-external-runtime-core-plugin'));
|
|
136
122
|
}
|
|
137
|
-
if (
|
|
123
|
+
if (options.experiments?.externalRuntime === true) {
|
|
138
124
|
const Externals = compiler.webpack.ExternalsPlugin;
|
|
139
125
|
new Externals(compiler.options.externalsType || 'global', {
|
|
140
126
|
'@module-federation/runtime-core': '_FEDERATION_RUNTIME_CORE'
|
|
@@ -177,7 +163,7 @@ class ModuleFederationPlugin {
|
|
|
177
163
|
});
|
|
178
164
|
if (!disableManifest) {
|
|
179
165
|
this._statsPlugin = new StatsPlugin(options, {
|
|
180
|
-
pluginVersion: "2.
|
|
166
|
+
pluginVersion: "2.7.0",
|
|
181
167
|
bundler: 'rspack'
|
|
182
168
|
});
|
|
183
169
|
// @ts-ignore
|
|
@@ -202,22 +188,20 @@ class ModuleFederationPlugin {
|
|
|
202
188
|
const hasBridgeReact = checkBridgeReactInstalled();
|
|
203
189
|
// react bridge plugin
|
|
204
190
|
const shouldEnableBridgePlugin = ()=>{
|
|
205
|
-
var _options_bridge, _options_bridge1, _options_bridge2;
|
|
206
191
|
// Priority 1: Explicit enableBridgeRouter configuration
|
|
207
|
-
if (
|
|
192
|
+
if (options?.bridge?.enableBridgeRouter === true) {
|
|
208
193
|
return true;
|
|
209
194
|
}
|
|
210
195
|
// 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' + ' }');
|
|
196
|
+
if (options?.bridge?.enableBridgeRouter === false || options?.bridge?.disableAlias === true) {
|
|
197
|
+
if (options?.bridge?.disableAlias === true) {
|
|
198
|
+
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
199
|
}
|
|
216
200
|
return false;
|
|
217
201
|
}
|
|
218
202
|
// Priority 3: Automatic detection based on bridge-react installation
|
|
219
203
|
if (hasBridgeReact) {
|
|
220
|
-
logger.info(
|
|
204
|
+
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
205
|
return true;
|
|
222
206
|
}
|
|
223
207
|
return false;
|
|
@@ -229,16 +213,16 @@ class ModuleFederationPlugin {
|
|
|
229
213
|
try {
|
|
230
214
|
const bridgeReactBasePath = node_path.resolve(compiler.context, 'node_modules/@module-federation/bridge-react/dist/base.es.js');
|
|
231
215
|
if (!node_fs.existsSync(bridgeReactBasePath)) {
|
|
232
|
-
logger.warn(
|
|
216
|
+
logger.warn('⚠️ [ModuleFederationPlugin] bridge-react /base entry not found, falling back to default entry');
|
|
233
217
|
return;
|
|
234
218
|
}
|
|
235
219
|
compiler.options.resolve.alias = {
|
|
236
220
|
...compiler.options.resolve.alias,
|
|
237
221
|
'@module-federation/bridge-react$': bridgeReactBasePath
|
|
238
222
|
};
|
|
239
|
-
logger.info(
|
|
223
|
+
logger.info('✅ [ModuleFederationPlugin] Router disabled - using /base entry (no react-router-dom)');
|
|
240
224
|
} catch (error) {
|
|
241
|
-
logger.warn(
|
|
225
|
+
logger.warn('⚠️ [ModuleFederationPlugin] Failed to set /base alias, using default entry');
|
|
242
226
|
}
|
|
243
227
|
});
|
|
244
228
|
}
|
|
@@ -321,4 +305,5 @@ class ModuleFederationPlugin {
|
|
|
321
305
|
const GetPublicPathPlugin = RemoteEntryPlugin;
|
|
322
306
|
|
|
323
307
|
|
|
324
|
-
export { GetPublicPathPlugin, ModuleFederationPlugin, PLUGIN_NAME,
|
|
308
|
+
export { GetPublicPathPlugin, ModuleFederationPlugin, PLUGIN_NAME, resolveRspackRuntimeAlias, resolveRspackRuntimeImplementation };
|
|
309
|
+
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.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.7.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/dts-plugin": "2.
|
|
29
|
-
"@module-federation/managers": "2.
|
|
30
|
-
"@module-federation/
|
|
31
|
-
"@module-federation/
|
|
32
|
-
"@module-federation/
|
|
33
|
-
"@module-federation/
|
|
27
|
+
"@module-federation/bridge-react-webpack-plugin": "2.7.0",
|
|
28
|
+
"@module-federation/dts-plugin": "2.7.0",
|
|
29
|
+
"@module-federation/managers": "2.7.0",
|
|
30
|
+
"@module-federation/manifest": "2.7.0",
|
|
31
|
+
"@module-federation/runtime-tools": "2.7.0",
|
|
32
|
+
"@module-federation/inject-external-runtime-core-plugin": "2.7.0",
|
|
33
|
+
"@module-federation/sdk": "2.7.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@rspack/core": "^1.0.2"
|
|
36
|
+
"@rspack/core": "^1.0.2",
|
|
37
|
+
"typescript": "6.0.3"
|
|
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",
|
|
85
86
|
"vue-tsc": ">=1.0.24",
|
|
86
87
|
"@rspack/core": "^0.7.0 || ^1.0.0 || ^2.0.0-0"
|
|
87
88
|
},
|