@module-federation/rsbuild-plugin 0.0.0-next-20241112091427 → 0.0.0-next-20241112220116

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/index.cjs.js CHANGED
@@ -278,139 +278,134 @@ function _ts_generator(thisArg, body) {
278
278
  }
279
279
  }
280
280
  var PLUGIN_MODULE_FEDERATION_NAME = 'rsbuild:module-federation-enhanced';
281
- var setupRsbuildConfig = function(moduleFederationOptions) {
282
- return function(api) {
283
- var sharedOptions = enhanced.parseOptions(moduleFederationOptions.shared || [], function(item, key) {
284
- if (typeof item !== 'string') throw new Error('Unexpected array in shared');
285
- var config = item === key || !sdk.isRequiredVersion(item) ? {
286
- import: item
287
- } : {
288
- import: key,
289
- requiredVersion: item
290
- };
291
- return config;
292
- }, function(item) {
293
- return item;
294
- });
295
- // shared[0] is the shared name
296
- var shared = sharedOptions.map(function(shared) {
297
- return shared[0].endsWith('/') ? shared[0].slice(0, -1) : shared[0];
298
- });
299
- api.modifyRsbuildConfig(function(config) {
300
- // Change some default configs for remote modules
301
- if (moduleFederationOptions.exposes) {
302
- var _config_server, _config_dev_client, _originalConfig_dev, _config_server1;
303
- var _config;
304
- (_config = config).dev || (_config.dev = {});
305
- // For remote modules, Rsbuild should send the ws request to the provider's dev server.
306
- // This allows the provider to do HMR when the provider module is loaded in the consumer's page.
307
- if (((_config_server = config.server) === null || _config_server === void 0 ? void 0 : _config_server.port) && !((_config_dev_client = config.dev.client) === null || _config_dev_client === void 0 ? void 0 : _config_dev_client.port)) {
308
- var _config_dev;
309
- (_config_dev = config.dev).client || (_config_dev.client = {});
310
- config.dev.client.port = config.server.port;
281
+ var pluginModuleFederation = function(moduleFederationOptions) {
282
+ return {
283
+ name: PLUGIN_MODULE_FEDERATION_NAME,
284
+ setup: function(api) {
285
+ var sharedOptions = enhanced.parseOptions(moduleFederationOptions.shared || [], function(item, key) {
286
+ if (typeof item !== 'string') throw new Error('Unexpected array in shared');
287
+ var config = item === key || !sdk.isRequiredVersion(item) ? {
288
+ import: item
289
+ } : {
290
+ import: key,
291
+ requiredVersion: item
292
+ };
293
+ return config;
294
+ }, function(item) {
295
+ return item;
296
+ });
297
+ // shared[0] is the shared name
298
+ var shared = sharedOptions.map(function(shared) {
299
+ return shared[0].endsWith('/') ? shared[0].slice(0, -1) : shared[0];
300
+ });
301
+ api.modifyRsbuildConfig(function(config) {
302
+ // Change some default configs for remote modules
303
+ if (moduleFederationOptions.exposes) {
304
+ var _config_server, _config_dev_client, _originalConfig_dev, _config_server1;
305
+ var _config;
306
+ (_config = config).dev || (_config.dev = {});
307
+ // For remote modules, Rsbuild should send the ws request to the provider's dev server.
308
+ // This allows the provider to do HMR when the provider module is loaded in the consumer's page.
309
+ if (((_config_server = config.server) === null || _config_server === void 0 ? void 0 : _config_server.port) && !((_config_dev_client = config.dev.client) === null || _config_dev_client === void 0 ? void 0 : _config_dev_client.port)) {
310
+ var _config_dev;
311
+ (_config_dev = config.dev).client || (_config_dev.client = {});
312
+ config.dev.client.port = config.server.port;
313
+ }
314
+ // Change the default assetPrefix to `true` for remote modules.
315
+ // This ensures that the remote module's assets can be requested by consumer apps with the correct URL.
316
+ var originalConfig = api.getRsbuildConfig('original');
317
+ if (((_originalConfig_dev = originalConfig.dev) === null || _originalConfig_dev === void 0 ? void 0 : _originalConfig_dev.assetPrefix) === undefined && config.dev.assetPrefix === ((_config_server1 = config.server) === null || _config_server1 === void 0 ? void 0 : _config_server1.base)) {
318
+ config.dev.assetPrefix = true;
319
+ }
311
320
  }
312
- // Change the default assetPrefix to `true` for remote modules.
313
- // This ensures that the remote module's assets can be requested by consumer apps with the correct URL.
314
- var originalConfig = api.getRsbuildConfig('original');
315
- if (((_originalConfig_dev = originalConfig.dev) === null || _originalConfig_dev === void 0 ? void 0 : _originalConfig_dev.assetPrefix) === undefined && config.dev.assetPrefix === ((_config_server1 = config.server) === null || _config_server1 === void 0 ? void 0 : _config_server1.base)) {
316
- config.dev.assetPrefix = true;
321
+ });
322
+ api.modifyEnvironmentConfig(function(config, param) {
323
+ var mergeEnvironmentConfig = param.mergeEnvironmentConfig;
324
+ var _config_performance_chunkSplit, _config_performance;
325
+ /**
326
+ * Currently, splitChunks will take precedence over module federation shared modules.
327
+ * So we need to disable the default split chunks rules to make shared modules to work properly.
328
+ * @see https://github.com/module-federation/module-federation-examples/issues/3161
329
+ */ if (((_config_performance = config.performance) === null || _config_performance === void 0 ? void 0 : (_config_performance_chunkSplit = _config_performance.chunkSplit) === null || _config_performance_chunkSplit === void 0 ? void 0 : _config_performance_chunkSplit.strategy) === 'split-by-experience') {
330
+ config.performance.chunkSplit = _object_spread_props(_object_spread({}, config.performance.chunkSplit), {
331
+ strategy: 'custom'
332
+ });
317
333
  }
318
- }
319
- });
320
- api.modifyEnvironmentConfig(function(config, param) {
321
- var mergeEnvironmentConfig = param.mergeEnvironmentConfig;
322
- var _config_performance_chunkSplit, _config_performance;
323
- /**
324
- * Currently, splitChunks will take precedence over module federation shared modules.
325
- * So we need to disable the default split chunks rules to make shared modules to work properly.
326
- * @see https://github.com/module-federation/module-federation-examples/issues/3161
327
- */ if (((_config_performance = config.performance) === null || _config_performance === void 0 ? void 0 : (_config_performance_chunkSplit = _config_performance.chunkSplit) === null || _config_performance_chunkSplit === void 0 ? void 0 : _config_performance_chunkSplit.strategy) === 'split-by-experience') {
328
- config.performance.chunkSplit = _object_spread_props(_object_spread({}, config.performance.chunkSplit), {
329
- strategy: 'custom'
330
- });
331
- }
332
- // Module Federation runtime uses ES6+ syntax,
333
- // adding to include and let SWC transform it
334
- config.source.include = _to_consumable_array(config.source.include || []).concat([
335
- /@module-federation[\\/]sdk/,
336
- /@module-federation[\\/]runtime/
337
- ]);
338
- // filter external with shared config,
339
- var externals = config.output.externals;
340
- if (Array.isArray(externals)) {
341
- var sharedModules = new Set();
342
- config.output.externals = externals.filter(function(ext) {
343
- var sharedModule;
344
- if (isRegExp(ext)) {
345
- var match = shared.some(function(dep) {
346
- if (ext.test(dep) || ext.test(pkgJson.name)) {
347
- sharedModule = dep;
348
- return true;
349
- }
350
- return false;
351
- });
352
- match && sharedModule && sharedModules.add(sharedModule);
353
- return !match;
354
- }
355
- if (typeof ext === 'string') {
356
- if (ext === pkgJson.name) {
357
- return false;
334
+ // Module Federation runtime uses ES6+ syntax,
335
+ // adding to include and let SWC transform it
336
+ config.source.include = _to_consumable_array(config.source.include || []).concat([
337
+ /@module-federation[\\/]sdk/,
338
+ /@module-federation[\\/]runtime/
339
+ ]);
340
+ // filter external with shared config,
341
+ var externals = config.output.externals;
342
+ if (Array.isArray(externals)) {
343
+ var sharedModules = new Set();
344
+ config.output.externals = externals.filter(function(ext) {
345
+ var sharedModule;
346
+ if (isRegExp(ext)) {
347
+ var match = shared.some(function(dep) {
348
+ if (ext.test(dep) || ext.test(pkgJson.name)) {
349
+ sharedModule = dep;
350
+ return true;
351
+ }
352
+ return false;
353
+ });
354
+ match && sharedModule && sharedModules.add(sharedModule);
355
+ return !match;
358
356
  }
359
- var match1 = shared.some(function(dep) {
360
- if (dep === ext) {
361
- sharedModule = dep;
357
+ if (typeof ext === 'string') {
358
+ if (ext === pkgJson.name) {
359
+ return false;
362
360
  }
363
- return dep === ext;
364
- });
365
- if (match1) {
366
- sharedModule && sharedModules.add(sharedModule);
367
- return false;
361
+ var match1 = shared.some(function(dep) {
362
+ if (dep === ext) {
363
+ sharedModule = dep;
364
+ }
365
+ return dep === ext;
366
+ });
367
+ if (match1) {
368
+ sharedModule && sharedModules.add(sharedModule);
369
+ return false;
370
+ }
371
+ return true;
368
372
  }
369
373
  return true;
370
- }
371
- return true;
372
- });
373
- if (sharedModules.size > 0) {
374
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
375
- try {
376
- for(var _iterator = sharedModules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
377
- var sharedModule = _step.value;
378
- logger.log("".concat(sharedModule, " is removed from externals because it is a shared module."));
379
- }
380
- } catch (err) {
381
- _didIteratorError = true;
382
- _iteratorError = err;
383
- } finally{
374
+ });
375
+ if (sharedModules.size > 0) {
376
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
384
377
  try {
385
- if (!_iteratorNormalCompletion && _iterator.return != null) {
386
- _iterator.return();
378
+ for(var _iterator = sharedModules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
379
+ var sharedModule = _step.value;
380
+ logger.log("".concat(sharedModule, " is removed from externals because it is a shared module."));
387
381
  }
382
+ } catch (err) {
383
+ _didIteratorError = true;
384
+ _iteratorError = err;
388
385
  } finally{
389
- if (_didIteratorError) {
390
- throw _iteratorError;
386
+ try {
387
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
388
+ _iterator.return();
389
+ }
390
+ } finally{
391
+ if (_didIteratorError) {
392
+ throw _iteratorError;
393
+ }
391
394
  }
392
395
  }
393
396
  }
394
397
  }
395
- }
396
- var mfConfig = {
397
- tools: {
398
- rspack: {
399
- output: {
400
- chunkLoading: 'jsonp'
398
+ var mfConfig = {
399
+ tools: {
400
+ rspack: {
401
+ output: {
402
+ chunkLoading: 'jsonp'
403
+ }
401
404
  }
402
405
  }
403
- }
404
- };
405
- return mergeEnvironmentConfig(config, mfConfig);
406
- });
407
- };
408
- };
409
- var pluginModuleFederation = function(moduleFederationOptions) {
410
- return {
411
- name: PLUGIN_MODULE_FEDERATION_NAME,
412
- setup: function(api) {
413
- setupRsbuildConfig(moduleFederationOptions)(api);
406
+ };
407
+ return mergeEnvironmentConfig(config, mfConfig);
408
+ });
414
409
  api.modifyBundlerChain(/*#__PURE__*/ function() {
415
410
  var _ref = _async_to_generator(function(chain) {
416
411
  return _ts_generator(this, function(_state) {
@@ -435,4 +430,3 @@ var pluginModuleFederation = function(moduleFederationOptions) {
435
430
  };
436
431
 
437
432
  exports.pluginModuleFederation = pluginModuleFederation;
438
- exports.setupRsbuildConfig = setupRsbuildConfig;
package/dist/index.esm.js CHANGED
@@ -276,139 +276,134 @@ function _ts_generator(thisArg, body) {
276
276
  }
277
277
  }
278
278
  var PLUGIN_MODULE_FEDERATION_NAME = 'rsbuild:module-federation-enhanced';
279
- var setupRsbuildConfig = function(moduleFederationOptions) {
280
- return function(api) {
281
- var sharedOptions = parseOptions(moduleFederationOptions.shared || [], function(item, key) {
282
- if (typeof item !== 'string') throw new Error('Unexpected array in shared');
283
- var config = item === key || !isRequiredVersion(item) ? {
284
- import: item
285
- } : {
286
- import: key,
287
- requiredVersion: item
288
- };
289
- return config;
290
- }, function(item) {
291
- return item;
292
- });
293
- // shared[0] is the shared name
294
- var shared = sharedOptions.map(function(shared) {
295
- return shared[0].endsWith('/') ? shared[0].slice(0, -1) : shared[0];
296
- });
297
- api.modifyRsbuildConfig(function(config) {
298
- // Change some default configs for remote modules
299
- if (moduleFederationOptions.exposes) {
300
- var _config_server, _config_dev_client, _originalConfig_dev, _config_server1;
301
- var _config;
302
- (_config = config).dev || (_config.dev = {});
303
- // For remote modules, Rsbuild should send the ws request to the provider's dev server.
304
- // This allows the provider to do HMR when the provider module is loaded in the consumer's page.
305
- if (((_config_server = config.server) === null || _config_server === void 0 ? void 0 : _config_server.port) && !((_config_dev_client = config.dev.client) === null || _config_dev_client === void 0 ? void 0 : _config_dev_client.port)) {
306
- var _config_dev;
307
- (_config_dev = config.dev).client || (_config_dev.client = {});
308
- config.dev.client.port = config.server.port;
279
+ var pluginModuleFederation = function(moduleFederationOptions) {
280
+ return {
281
+ name: PLUGIN_MODULE_FEDERATION_NAME,
282
+ setup: function(api) {
283
+ var sharedOptions = parseOptions(moduleFederationOptions.shared || [], function(item, key) {
284
+ if (typeof item !== 'string') throw new Error('Unexpected array in shared');
285
+ var config = item === key || !isRequiredVersion(item) ? {
286
+ import: item
287
+ } : {
288
+ import: key,
289
+ requiredVersion: item
290
+ };
291
+ return config;
292
+ }, function(item) {
293
+ return item;
294
+ });
295
+ // shared[0] is the shared name
296
+ var shared = sharedOptions.map(function(shared) {
297
+ return shared[0].endsWith('/') ? shared[0].slice(0, -1) : shared[0];
298
+ });
299
+ api.modifyRsbuildConfig(function(config) {
300
+ // Change some default configs for remote modules
301
+ if (moduleFederationOptions.exposes) {
302
+ var _config_server, _config_dev_client, _originalConfig_dev, _config_server1;
303
+ var _config;
304
+ (_config = config).dev || (_config.dev = {});
305
+ // For remote modules, Rsbuild should send the ws request to the provider's dev server.
306
+ // This allows the provider to do HMR when the provider module is loaded in the consumer's page.
307
+ if (((_config_server = config.server) === null || _config_server === void 0 ? void 0 : _config_server.port) && !((_config_dev_client = config.dev.client) === null || _config_dev_client === void 0 ? void 0 : _config_dev_client.port)) {
308
+ var _config_dev;
309
+ (_config_dev = config.dev).client || (_config_dev.client = {});
310
+ config.dev.client.port = config.server.port;
311
+ }
312
+ // Change the default assetPrefix to `true` for remote modules.
313
+ // This ensures that the remote module's assets can be requested by consumer apps with the correct URL.
314
+ var originalConfig = api.getRsbuildConfig('original');
315
+ if (((_originalConfig_dev = originalConfig.dev) === null || _originalConfig_dev === void 0 ? void 0 : _originalConfig_dev.assetPrefix) === undefined && config.dev.assetPrefix === ((_config_server1 = config.server) === null || _config_server1 === void 0 ? void 0 : _config_server1.base)) {
316
+ config.dev.assetPrefix = true;
317
+ }
309
318
  }
310
- // Change the default assetPrefix to `true` for remote modules.
311
- // This ensures that the remote module's assets can be requested by consumer apps with the correct URL.
312
- var originalConfig = api.getRsbuildConfig('original');
313
- if (((_originalConfig_dev = originalConfig.dev) === null || _originalConfig_dev === void 0 ? void 0 : _originalConfig_dev.assetPrefix) === undefined && config.dev.assetPrefix === ((_config_server1 = config.server) === null || _config_server1 === void 0 ? void 0 : _config_server1.base)) {
314
- config.dev.assetPrefix = true;
319
+ });
320
+ api.modifyEnvironmentConfig(function(config, param) {
321
+ var mergeEnvironmentConfig = param.mergeEnvironmentConfig;
322
+ var _config_performance_chunkSplit, _config_performance;
323
+ /**
324
+ * Currently, splitChunks will take precedence over module federation shared modules.
325
+ * So we need to disable the default split chunks rules to make shared modules to work properly.
326
+ * @see https://github.com/module-federation/module-federation-examples/issues/3161
327
+ */ if (((_config_performance = config.performance) === null || _config_performance === void 0 ? void 0 : (_config_performance_chunkSplit = _config_performance.chunkSplit) === null || _config_performance_chunkSplit === void 0 ? void 0 : _config_performance_chunkSplit.strategy) === 'split-by-experience') {
328
+ config.performance.chunkSplit = _object_spread_props(_object_spread({}, config.performance.chunkSplit), {
329
+ strategy: 'custom'
330
+ });
315
331
  }
316
- }
317
- });
318
- api.modifyEnvironmentConfig(function(config, param) {
319
- var mergeEnvironmentConfig = param.mergeEnvironmentConfig;
320
- var _config_performance_chunkSplit, _config_performance;
321
- /**
322
- * Currently, splitChunks will take precedence over module federation shared modules.
323
- * So we need to disable the default split chunks rules to make shared modules to work properly.
324
- * @see https://github.com/module-federation/module-federation-examples/issues/3161
325
- */ if (((_config_performance = config.performance) === null || _config_performance === void 0 ? void 0 : (_config_performance_chunkSplit = _config_performance.chunkSplit) === null || _config_performance_chunkSplit === void 0 ? void 0 : _config_performance_chunkSplit.strategy) === 'split-by-experience') {
326
- config.performance.chunkSplit = _object_spread_props(_object_spread({}, config.performance.chunkSplit), {
327
- strategy: 'custom'
328
- });
329
- }
330
- // Module Federation runtime uses ES6+ syntax,
331
- // adding to include and let SWC transform it
332
- config.source.include = _to_consumable_array(config.source.include || []).concat([
333
- /@module-federation[\\/]sdk/,
334
- /@module-federation[\\/]runtime/
335
- ]);
336
- // filter external with shared config,
337
- var externals = config.output.externals;
338
- if (Array.isArray(externals)) {
339
- var sharedModules = new Set();
340
- config.output.externals = externals.filter(function(ext) {
341
- var sharedModule;
342
- if (isRegExp(ext)) {
343
- var match = shared.some(function(dep) {
344
- if (ext.test(dep) || ext.test(pkgJson.name)) {
345
- sharedModule = dep;
346
- return true;
347
- }
348
- return false;
349
- });
350
- match && sharedModule && sharedModules.add(sharedModule);
351
- return !match;
352
- }
353
- if (typeof ext === 'string') {
354
- if (ext === pkgJson.name) {
355
- return false;
332
+ // Module Federation runtime uses ES6+ syntax,
333
+ // adding to include and let SWC transform it
334
+ config.source.include = _to_consumable_array(config.source.include || []).concat([
335
+ /@module-federation[\\/]sdk/,
336
+ /@module-federation[\\/]runtime/
337
+ ]);
338
+ // filter external with shared config,
339
+ var externals = config.output.externals;
340
+ if (Array.isArray(externals)) {
341
+ var sharedModules = new Set();
342
+ config.output.externals = externals.filter(function(ext) {
343
+ var sharedModule;
344
+ if (isRegExp(ext)) {
345
+ var match = shared.some(function(dep) {
346
+ if (ext.test(dep) || ext.test(pkgJson.name)) {
347
+ sharedModule = dep;
348
+ return true;
349
+ }
350
+ return false;
351
+ });
352
+ match && sharedModule && sharedModules.add(sharedModule);
353
+ return !match;
356
354
  }
357
- var match1 = shared.some(function(dep) {
358
- if (dep === ext) {
359
- sharedModule = dep;
355
+ if (typeof ext === 'string') {
356
+ if (ext === pkgJson.name) {
357
+ return false;
360
358
  }
361
- return dep === ext;
362
- });
363
- if (match1) {
364
- sharedModule && sharedModules.add(sharedModule);
365
- return false;
359
+ var match1 = shared.some(function(dep) {
360
+ if (dep === ext) {
361
+ sharedModule = dep;
362
+ }
363
+ return dep === ext;
364
+ });
365
+ if (match1) {
366
+ sharedModule && sharedModules.add(sharedModule);
367
+ return false;
368
+ }
369
+ return true;
366
370
  }
367
371
  return true;
368
- }
369
- return true;
370
- });
371
- if (sharedModules.size > 0) {
372
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
373
- try {
374
- for(var _iterator = sharedModules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
375
- var sharedModule = _step.value;
376
- logger.log("".concat(sharedModule, " is removed from externals because it is a shared module."));
377
- }
378
- } catch (err) {
379
- _didIteratorError = true;
380
- _iteratorError = err;
381
- } finally{
372
+ });
373
+ if (sharedModules.size > 0) {
374
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
382
375
  try {
383
- if (!_iteratorNormalCompletion && _iterator.return != null) {
384
- _iterator.return();
376
+ for(var _iterator = sharedModules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
377
+ var sharedModule = _step.value;
378
+ logger.log("".concat(sharedModule, " is removed from externals because it is a shared module."));
385
379
  }
380
+ } catch (err) {
381
+ _didIteratorError = true;
382
+ _iteratorError = err;
386
383
  } finally{
387
- if (_didIteratorError) {
388
- throw _iteratorError;
384
+ try {
385
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
386
+ _iterator.return();
387
+ }
388
+ } finally{
389
+ if (_didIteratorError) {
390
+ throw _iteratorError;
391
+ }
389
392
  }
390
393
  }
391
394
  }
392
395
  }
393
- }
394
- var mfConfig = {
395
- tools: {
396
- rspack: {
397
- output: {
398
- chunkLoading: 'jsonp'
396
+ var mfConfig = {
397
+ tools: {
398
+ rspack: {
399
+ output: {
400
+ chunkLoading: 'jsonp'
401
+ }
399
402
  }
400
403
  }
401
- }
402
- };
403
- return mergeEnvironmentConfig(config, mfConfig);
404
- });
405
- };
406
- };
407
- var pluginModuleFederation = function(moduleFederationOptions) {
408
- return {
409
- name: PLUGIN_MODULE_FEDERATION_NAME,
410
- setup: function(api) {
411
- setupRsbuildConfig(moduleFederationOptions)(api);
404
+ };
405
+ return mergeEnvironmentConfig(config, mfConfig);
406
+ });
412
407
  api.modifyBundlerChain(/*#__PURE__*/ function() {
413
408
  var _ref = _async_to_generator(function(chain) {
414
409
  return _ts_generator(this, function(_state) {
@@ -432,4 +427,4 @@ var pluginModuleFederation = function(moduleFederationOptions) {
432
427
  };
433
428
  };
434
429
 
435
- export { pluginModuleFederation, setupRsbuildConfig };
430
+ export { pluginModuleFederation };
@@ -1,6 +1,5 @@
1
1
  import type { moduleFederationPlugin } from '@module-federation/sdk';
2
2
  import type { RsbuildPlugin } from '@rsbuild/core';
3
3
  type ModuleFederationOptions = moduleFederationPlugin.ModuleFederationPluginOptions;
4
- export declare const setupRsbuildConfig: (moduleFederationOptions: ModuleFederationOptions) => RsbuildPlugin['setup'];
5
4
  export declare const pluginModuleFederation: (moduleFederationOptions: ModuleFederationOptions) => RsbuildPlugin;
6
5
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rsbuild-plugin",
3
- "version": "0.0.0-next-20241112091427",
3
+ "version": "0.0.0-next-20241112220116",
4
4
  "description": "Module Federation plugin for Rsbuild",
5
5
  "homepage": "https://module-federation.io",
6
6
  "bugs": {
@@ -32,14 +32,14 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@module-federation/sdk": "0.0.0-next-20241112091427"
35
+ "@module-federation/sdk": "0.0.0-next-20241112220116"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rsbuild/core": "^1.0.19"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@rsbuild/core": "1.x",
42
- "@module-federation/enhanced": "0.0.0-next-20241112091427"
42
+ "@module-federation/enhanced": "0.0.0-next-20241112220116"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=16.0.0"
package/dist/package.json DELETED
@@ -1,53 +0,0 @@
1
- {
2
- "name": "@module-federation/rsbuild-plugin",
3
- "version": "0.7.2",
4
- "description": "Module Federation plugin for Rsbuild",
5
- "homepage": "https://module-federation.io",
6
- "bugs": {
7
- "url": "https://github.com/module-federation/core/issues"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/module-federation/core",
12
- "directory": "packages/rsbuild-plugin"
13
- },
14
- "license": "MIT",
15
- "exports": {
16
- ".": {
17
- "import": "./dist/index.esm.js",
18
- "require": "./dist/index.cjs.js",
19
- "types": "./dist/index.cjs.d.ts"
20
- }
21
- },
22
- "main": "./index.cjs.js",
23
- "module": "./index.esm.js",
24
- "typesVersions": {
25
- "*": {
26
- ".": [
27
- "./dist/index.cjs.d.ts"
28
- ]
29
- }
30
- },
31
- "files": [
32
- "dist"
33
- ],
34
- "dependencies": {
35
- "@module-federation/sdk": "workspace:*"
36
- },
37
- "devDependencies": {
38
- "@rsbuild/core": "^1.0.19"
39
- },
40
- "peerDependencies": {
41
- "@module-federation/enhanced": "workspace:*",
42
- "@rsbuild/core": "1.x"
43
- },
44
- "engines": {
45
- "node": ">=16.0.0"
46
- },
47
- "publishConfig": {
48
- "access": "public",
49
- "provenance": true,
50
- "registry": "https://registry.npmjs.org/"
51
- },
52
- "types": "./index.esm.d.ts"
53
- }