@module-federation/rspack 0.16.0 → 0.17.1

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.
@@ -90,9 +90,7 @@ var PLUGIN_NAME = 'RspackModuleFederationPlugin';
90
90
  var ModuleFederationPlugin = /*#__PURE__*/ function() {
91
91
  function ModuleFederationPlugin(options) {
92
92
  _class_call_check(this, ModuleFederationPlugin);
93
- _define_property(this, "name", PLUGIN_NAME);
94
- _define_property(this, "_options", void 0);
95
- _define_property(this, "_statsPlugin", void 0);
93
+ this.name = PLUGIN_NAME;
96
94
  this._options = options;
97
95
  }
98
96
  _create_class(ModuleFederationPlugin, [
@@ -202,7 +200,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
202
200
  });
203
201
  if (!disableManifest) {
204
202
  this._statsPlugin = new manifest.StatsPlugin(options, {
205
- pluginVersion: "0.16.0",
203
+ pluginVersion: "0.17.1",
206
204
  bundler: 'rspack'
207
205
  });
208
206
  // @ts-ignore
@@ -88,9 +88,7 @@ var PLUGIN_NAME = 'RspackModuleFederationPlugin';
88
88
  var ModuleFederationPlugin = /*#__PURE__*/ function() {
89
89
  function ModuleFederationPlugin(options) {
90
90
  _class_call_check(this, ModuleFederationPlugin);
91
- _define_property(this, "name", PLUGIN_NAME);
92
- _define_property(this, "_options", void 0);
93
- _define_property(this, "_statsPlugin", void 0);
91
+ this.name = PLUGIN_NAME;
94
92
  this._options = options;
95
93
  }
96
94
  _create_class(ModuleFederationPlugin, [
@@ -200,7 +198,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
200
198
  });
201
199
  if (!disableManifest) {
202
200
  this._statsPlugin = new StatsPlugin(options, {
203
- pluginVersion: "0.16.0",
201
+ pluginVersion: "0.17.1",
204
202
  bundler: 'rspack'
205
203
  });
206
204
  // @ts-ignore
@@ -25,19 +25,6 @@ function _create_class(Constructor, protoProps, staticProps) {
25
25
  if (staticProps) _defineProperties(Constructor, staticProps);
26
26
  return Constructor;
27
27
  }
28
- function _define_property(obj, key, value) {
29
- if (key in obj) {
30
- Object.defineProperty(obj, key, {
31
- value: value,
32
- enumerable: true,
33
- configurable: true,
34
- writable: true
35
- });
36
- } else {
37
- obj[key] = value;
38
- }
39
- return obj;
40
- }
41
28
  // @ts-ignore
42
29
  var charMap = {
43
30
  '<': '\\u003C',
@@ -61,8 +48,7 @@ function escapeUnsafeChars(str) {
61
48
  var RemoteEntryPlugin = /*#__PURE__*/ function() {
62
49
  function RemoteEntryPlugin(options) {
63
50
  _class_call_check(this, RemoteEntryPlugin);
64
- _define_property(this, "name", 'VmokRemoteEntryPlugin');
65
- _define_property(this, "_options", void 0);
51
+ this.name = 'VmokRemoteEntryPlugin';
66
52
  this._options = options;
67
53
  }
68
54
  _create_class(RemoteEntryPlugin, [
@@ -104,6 +90,7 @@ var RemoteEntryPlugin = /*#__PURE__*/ function() {
104
90
  }
105
91
  ]);
106
92
  return RemoteEntryPlugin;
107
- }();
93
+ }
94
+ ();
108
95
 
109
96
  exports.RemoteEntryPlugin = RemoteEntryPlugin;
@@ -23,19 +23,6 @@ function _create_class(Constructor, protoProps, staticProps) {
23
23
  if (staticProps) _defineProperties(Constructor, staticProps);
24
24
  return Constructor;
25
25
  }
26
- function _define_property(obj, key, value) {
27
- if (key in obj) {
28
- Object.defineProperty(obj, key, {
29
- value: value,
30
- enumerable: true,
31
- configurable: true,
32
- writable: true
33
- });
34
- } else {
35
- obj[key] = value;
36
- }
37
- return obj;
38
- }
39
26
  // @ts-ignore
40
27
  var charMap = {
41
28
  '<': '\\u003C',
@@ -59,8 +46,7 @@ function escapeUnsafeChars(str) {
59
46
  var RemoteEntryPlugin = /*#__PURE__*/ function() {
60
47
  function RemoteEntryPlugin(options) {
61
48
  _class_call_check(this, RemoteEntryPlugin);
62
- _define_property(this, "name", 'VmokRemoteEntryPlugin');
63
- _define_property(this, "_options", void 0);
49
+ this.name = 'VmokRemoteEntryPlugin';
64
50
  this._options = options;
65
51
  }
66
52
  _create_class(RemoteEntryPlugin, [
@@ -102,6 +88,7 @@ var RemoteEntryPlugin = /*#__PURE__*/ function() {
102
88
  }
103
89
  ]);
104
90
  return RemoteEntryPlugin;
105
- }();
91
+ }
92
+ ();
106
93
 
107
94
  export { RemoteEntryPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
@@ -22,33 +22,33 @@
22
22
  "sideEffects": false,
23
23
  "main": "./dist/index.cjs.js",
24
24
  "module": "./dist/index.esm.mjs",
25
- "types": "./dist/index.cjs.d.ts",
25
+ "types": "./dist/index.d.ts",
26
26
  "dependencies": {
27
27
  "btoa": "1.2.1",
28
- "@module-federation/bridge-react-webpack-plugin": "0.16.0",
29
- "@module-federation/dts-plugin": "0.16.0",
30
- "@module-federation/managers": "0.16.0",
31
- "@module-federation/manifest": "0.16.0",
32
- "@module-federation/runtime-tools": "0.16.0",
33
- "@module-federation/inject-external-runtime-core-plugin": "0.16.0",
34
- "@module-federation/sdk": "0.16.0"
28
+ "@module-federation/bridge-react-webpack-plugin": "0.17.1",
29
+ "@module-federation/dts-plugin": "0.17.1",
30
+ "@module-federation/managers": "0.17.1",
31
+ "@module-federation/manifest": "0.17.1",
32
+ "@module-federation/runtime-tools": "0.17.1",
33
+ "@module-federation/inject-external-runtime-core-plugin": "0.17.1",
34
+ "@module-federation/sdk": "0.17.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rspack/core": "^1.0.2"
38
38
  },
39
39
  "exports": {
40
40
  ".": {
41
- "types": "./dist/index.cjs.d.ts",
41
+ "types": "./dist/index.d.ts",
42
42
  "import": "./dist/index.esm.mjs",
43
43
  "require": "./dist/index.cjs.js"
44
44
  },
45
45
  "./plugin": {
46
- "types": "./dist/plugin.cjs.d.ts",
46
+ "types": "./dist/plugin.d.ts",
47
47
  "import": "./dist/plugin.esm.mjs",
48
48
  "require": "./dist/plugin.cjs.js"
49
49
  },
50
50
  "./remote-entry-plugin": {
51
- "types": "./dist/remote-entry-plugin.cjs.d.ts",
51
+ "types": "./dist/remote-entry-plugin.d.ts",
52
52
  "import": "./dist/remote-entry-plugin.esm.mjs",
53
53
  "require": "./dist/remote-entry-plugin.cjs.js"
54
54
  }
@@ -56,13 +56,13 @@
56
56
  "typesVersions": {
57
57
  "*": {
58
58
  ".": [
59
- "./dist/index.cjs.d.ts"
59
+ "./dist/index.d.ts"
60
60
  ],
61
61
  "plugin": [
62
- "./dist/plugin.cjs.d.ts"
62
+ "./dist/plugin.d.ts"
63
63
  ],
64
64
  "remote-entry-plugin": [
65
- "./dist/remote-entry-plugin.cjs.d.ts"
65
+ "./dist/remote-entry-plugin.d.ts"
66
66
  ]
67
67
  }
68
68
  },
File without changes
File without changes