@module-federation/rsbuild-plugin 2.2.2 → 2.2.3

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/cli/index.js CHANGED
@@ -68,9 +68,6 @@ const enhanced_namespaceObject = require("@module-federation/enhanced");
68
68
  const rspack_namespaceObject = require("@module-federation/enhanced/rspack");
69
69
  ;// CONCATENATED MODULE: external "@module-federation/sdk"
70
70
  const sdk_namespaceObject = require("@module-federation/sdk");
71
- ;// CONCATENATED MODULE: external "../../package.json"
72
- const external_package_json_namespaceObject = require("../../package.json");
73
- var external_package_json_default = /*#__PURE__*/__webpack_require__.n(external_package_json_namespaceObject);
74
71
  ;// CONCATENATED MODULE: external "../logger.js"
75
72
  const external_logger_js_namespaceObject = require("../logger.js");
76
73
  var external_logger_js_default = /*#__PURE__*/__webpack_require__.n(external_logger_js_namespaceObject);
@@ -88,7 +85,6 @@ const ssr_js_namespaceObject = require("../utils/ssr.js");
88
85
 
89
86
 
90
87
 
91
-
92
88
  const RSBUILD_PLUGIN_MODULE_FEDERATION_NAME = 'rsbuild:module-federation-enhanced';
93
89
  const RSBUILD_PLUGIN_NAME = '@module-federation/rsbuild-plugin';
94
90
 
@@ -351,7 +347,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
351
347
  let sharedModule;
352
348
  if ((0,external_utils_js_namespaceObject.isRegExp)(ext)) {
353
349
  const match = shared.some((dep)=>{
354
- if (ext.test(dep) || ext.test((external_package_json_default()).name)) {
350
+ if (ext.test(dep) || ext.test("@module-federation/rsbuild-plugin")) {
355
351
  sharedModule = dep;
356
352
  return true;
357
353
  }
@@ -361,7 +357,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
361
357
  return !match;
362
358
  }
363
359
  if (typeof ext === 'string') {
364
- if (ext === (external_package_json_default()).name) {
360
+ if (ext === "@module-federation/rsbuild-plugin") {
365
361
  return false;
366
362
  }
367
363
  const match = shared.some((dep)=>{
@@ -1,7 +1,6 @@
1
1
  import { parseOptions } from "@module-federation/enhanced";
2
2
  import { ModuleFederationPlugin, PLUGIN_NAME, TreeShakingSharedPlugin } from "@module-federation/enhanced/rspack";
3
3
  import { createModuleFederationConfig, getManifestFileName, isRequiredVersion } from "@module-federation/sdk";
4
- import package_0 from "../../package.json";
5
4
  import logger from "../logger.mjs";
6
5
  import { SSR_DIR, SSR_ENV_NAME, addDataFetchExposes, autoDeleteSplitChunkCacheGroups, createSSRMFConfig, createSSRREnvConfig, isRegExp, patchSSRRspackConfig, setSSREnv, updateStatsAndManifest } from "../utils.mjs";
7
6
  import { CALL_NAME_MAP, RSPRESS_BUNDLER_CONFIG_NAME, RSPRESS_SSG_MD_ENV_NAME, RSPRESS_SSR_DIR } from "../constant.mjs";
@@ -13,8 +12,6 @@ import { patchNodeConfig, patchToolsTspack } from "../utils/ssr.mjs";
13
12
 
14
13
  ;// CONCATENATED MODULE: external "@module-federation/sdk"
15
14
 
16
- ;// CONCATENATED MODULE: external "../../package.json"
17
-
18
15
  ;// CONCATENATED MODULE: external "../logger.mjs"
19
16
 
20
17
  ;// CONCATENATED MODULE: external "../utils.mjs"
@@ -31,7 +28,6 @@ import { patchNodeConfig, patchToolsTspack } from "../utils/ssr.mjs";
31
28
 
32
29
 
33
30
 
34
-
35
31
  const RSBUILD_PLUGIN_MODULE_FEDERATION_NAME = 'rsbuild:module-federation-enhanced';
36
32
  const RSBUILD_PLUGIN_NAME = '@module-federation/rsbuild-plugin';
37
33
 
@@ -294,7 +290,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
294
290
  let sharedModule;
295
291
  if (isRegExp(ext)) {
296
292
  const match = shared.some((dep)=>{
297
- if (ext.test(dep) || ext.test(package_0.name)) {
293
+ if (ext.test(dep) || ext.test("@module-federation/rsbuild-plugin")) {
298
294
  sharedModule = dep;
299
295
  return true;
300
296
  }
@@ -304,7 +300,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
304
300
  return !match;
305
301
  }
306
302
  if (typeof ext === 'string') {
307
- if (ext === package_0.name) {
303
+ if (ext === "@module-federation/rsbuild-plugin") {
308
304
  return false;
309
305
  }
310
306
  const match = shared.some((dep)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rsbuild-plugin",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Module Federation plugin for Rsbuild",
5
5
  "homepage": "https://module-federation.io",
6
6
  "bugs": {
@@ -50,9 +50,9 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "fs-extra": "11.3.0",
53
- "@module-federation/sdk": "2.2.2",
54
- "@module-federation/enhanced": "2.2.2",
55
- "@module-federation/node": "2.7.36"
53
+ "@module-federation/sdk": "2.2.3",
54
+ "@module-federation/node": "2.7.37",
55
+ "@module-federation/enhanced": "2.2.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@rslib/core": "^0.12.4",