@module-federation/rspack 0.6.7 → 0.6.8

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
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var sdk = require('@module-federation/sdk');
6
4
  var manifest = require('@module-federation/manifest');
7
5
  var managers = require('@module-federation/managers');
@@ -10,12 +8,6 @@ var ReactBridgePlugin = require('@module-federation/bridge-react-webpack-plugin'
10
8
  var path = require('node:path');
11
9
  var fs = require('node:fs');
12
10
 
13
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
-
15
- var ReactBridgePlugin__default = /*#__PURE__*/_interopDefaultLegacy(ReactBridgePlugin);
16
- var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
17
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
18
-
19
11
  function _class_call_check(instance, Constructor) {
20
12
  if (!(instance instanceof Constructor)) {
21
13
  throw new TypeError("Cannot call a class as a function");
@@ -32,7 +24,6 @@ function _defineProperties(target, props) {
32
24
  }
33
25
  function _create_class(Constructor, protoProps, staticProps) {
34
26
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
35
- if (staticProps) _defineProperties(Constructor, staticProps);
36
27
  return Constructor;
37
28
  }
38
29
  function _define_property(obj, key, value) {
@@ -74,11 +65,6 @@ function ownKeys(object, enumerableOnly) {
74
65
  var keys = Object.keys(object);
75
66
  if (Object.getOwnPropertySymbols) {
76
67
  var symbols = Object.getOwnPropertySymbols(object);
77
- if (enumerableOnly) {
78
- symbols = symbols.filter(function(sym) {
79
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
80
- });
81
- }
82
68
  keys.push.apply(keys, symbols);
83
69
  }
84
70
  return keys;
@@ -177,18 +163,18 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
177
163
  });
178
164
  if (!disableManifest) {
179
165
  this._statsPlugin = new manifest.StatsPlugin(options, {
180
- pluginVersion: "0.6.7",
166
+ pluginVersion: "0.6.8",
181
167
  bundler: 'rspack'
182
168
  });
183
169
  // @ts-ignore
184
170
  this._statsPlugin.apply(compiler);
185
171
  }
186
172
  // react bridge plugin
187
- var nodeModulesPath = path__default["default"].resolve(compiler.context, 'node_modules');
188
- var reactPath = path__default["default"].join(nodeModulesPath, '@module-federation/bridge-react');
173
+ var nodeModulesPath = path.resolve(compiler.context, 'node_modules');
174
+ var reactPath = path.join(nodeModulesPath, '@module-federation/bridge-react');
189
175
  // Check whether react exists
190
- if (fs__default["default"].existsSync(reactPath)) {
191
- new ReactBridgePlugin__default["default"]({
176
+ if (fs.existsSync(reactPath)) {
177
+ new ReactBridgePlugin({
192
178
  moduleFederationOptions: this._options
193
179
  }).apply(compiler);
194
180
  }
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/dist/index.esm.js CHANGED
@@ -22,7 +22,6 @@ function _defineProperties(target, props) {
22
22
  }
23
23
  function _create_class(Constructor, protoProps, staticProps) {
24
24
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
25
- if (staticProps) _defineProperties(Constructor, staticProps);
26
25
  return Constructor;
27
26
  }
28
27
  function _define_property(obj, key, value) {
@@ -64,11 +63,6 @@ function ownKeys(object, enumerableOnly) {
64
63
  var keys = Object.keys(object);
65
64
  if (Object.getOwnPropertySymbols) {
66
65
  var symbols = Object.getOwnPropertySymbols(object);
67
- if (enumerableOnly) {
68
- symbols = symbols.filter(function(sym) {
69
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
70
- });
71
- }
72
66
  keys.push.apply(keys, symbols);
73
67
  }
74
68
  return keys;
@@ -167,7 +161,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
167
161
  });
168
162
  if (!disableManifest) {
169
163
  this._statsPlugin = new StatsPlugin(options, {
170
- pluginVersion: "0.6.7",
164
+ pluginVersion: "0.6.8",
171
165
  bundler: 'rspack'
172
166
  });
173
167
  // @ts-ignore
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
@@ -19,15 +19,15 @@
19
19
  "module": "./index.esm.js",
20
20
  "types": "./dist/index.cjs.d.ts",
21
21
  "dependencies": {
22
- "@module-federation/sdk": "workspace:*",
23
22
  "@module-federation/bridge-react-webpack-plugin": "workspace:*",
24
- "@module-federation/runtime-tools": "workspace:*",
25
- "@module-federation/manifest": "workspace:*",
23
+ "@module-federation/dts-plugin": "workspace:*",
26
24
  "@module-federation/managers": "workspace:*",
27
- "@module-federation/dts-plugin": "workspace:*"
25
+ "@module-federation/manifest": "workspace:*",
26
+ "@module-federation/runtime-tools": "workspace:*",
27
+ "@module-federation/sdk": "workspace:*"
28
28
  },
29
29
  "devDependencies": {
30
- "@rspack/core": "0.5.0"
30
+ "@rspack/core": "^1.0.2"
31
31
  },
32
32
  "exports": {
33
33
  ".": {
@@ -55,4 +55,4 @@
55
55
  "optional": true
56
56
  }
57
57
  }
58
- }
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
@@ -19,15 +19,15 @@
19
19
  "module": "./dist/index.esm.js",
20
20
  "types": "./dist/index.cjs.d.ts",
21
21
  "dependencies": {
22
- "@module-federation/sdk": "0.6.7",
23
- "@module-federation/bridge-react-webpack-plugin": "0.6.7",
24
- "@module-federation/runtime-tools": "0.6.7",
25
- "@module-federation/manifest": "0.6.7",
26
- "@module-federation/managers": "0.6.7",
27
- "@module-federation/dts-plugin": "0.6.7"
22
+ "@module-federation/bridge-react-webpack-plugin": "0.6.8",
23
+ "@module-federation/dts-plugin": "0.6.8",
24
+ "@module-federation/managers": "0.6.8",
25
+ "@module-federation/manifest": "0.6.8",
26
+ "@module-federation/runtime-tools": "0.6.8",
27
+ "@module-federation/sdk": "0.6.8"
28
28
  },
29
29
  "devDependencies": {
30
- "@rspack/core": "0.5.0"
30
+ "@rspack/core": "^1.0.2"
31
31
  },
32
32
  "exports": {
33
33
  ".": {