@module-federation/rspack 0.7.7 → 0.8.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.
- package/dist/index.cjs.js +7 -1
- package/dist/index.esm.js +6 -2
- package/dist/src/index.d.ts +2 -0
- package/package.json +9 -8
package/dist/index.cjs.js
CHANGED
|
@@ -7,6 +7,7 @@ var dtsPlugin = require('@module-federation/dts-plugin');
|
|
|
7
7
|
var ReactBridgePlugin = require('@module-federation/bridge-react-webpack-plugin');
|
|
8
8
|
var path = require('node:path');
|
|
9
9
|
var fs = require('node:fs');
|
|
10
|
+
var core = require('@rspack/core');
|
|
10
11
|
|
|
11
12
|
function _class_call_check(instance, Constructor) {
|
|
12
13
|
if (!(instance instanceof Constructor)) {
|
|
@@ -165,7 +166,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
165
166
|
});
|
|
166
167
|
if (!disableManifest) {
|
|
167
168
|
this._statsPlugin = new manifest.StatsPlugin(options, {
|
|
168
|
-
pluginVersion: "0.
|
|
169
|
+
pluginVersion: "0.8.1",
|
|
169
170
|
bundler: 'rspack'
|
|
170
171
|
});
|
|
171
172
|
// @ts-ignore
|
|
@@ -259,4 +260,9 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
259
260
|
return ModuleFederationPlugin;
|
|
260
261
|
}();
|
|
261
262
|
|
|
263
|
+
var ContainerPlugin = core.container.ContainerPlugin;
|
|
264
|
+
var ContainerReferencePlugin = core.container.ContainerReferencePlugin;
|
|
265
|
+
|
|
266
|
+
exports.ContainerPlugin = ContainerPlugin;
|
|
267
|
+
exports.ContainerReferencePlugin = ContainerReferencePlugin;
|
|
262
268
|
exports.ModuleFederationPlugin = ModuleFederationPlugin;
|
package/dist/index.esm.js
CHANGED
|
@@ -5,6 +5,7 @@ import { DtsPlugin } from '@module-federation/dts-plugin';
|
|
|
5
5
|
import ReactBridgePlugin from '@module-federation/bridge-react-webpack-plugin';
|
|
6
6
|
import path from 'node:path';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
|
+
import { container } from '@rspack/core';
|
|
8
9
|
|
|
9
10
|
function _class_call_check(instance, Constructor) {
|
|
10
11
|
if (!(instance instanceof Constructor)) {
|
|
@@ -163,7 +164,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
163
164
|
});
|
|
164
165
|
if (!disableManifest) {
|
|
165
166
|
this._statsPlugin = new StatsPlugin(options, {
|
|
166
|
-
pluginVersion: "0.
|
|
167
|
+
pluginVersion: "0.8.1",
|
|
167
168
|
bundler: 'rspack'
|
|
168
169
|
});
|
|
169
170
|
// @ts-ignore
|
|
@@ -257,4 +258,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
257
258
|
return ModuleFederationPlugin;
|
|
258
259
|
}();
|
|
259
260
|
|
|
260
|
-
|
|
261
|
+
var ContainerPlugin = container.ContainerPlugin;
|
|
262
|
+
var ContainerReferencePlugin = container.ContainerReferencePlugin;
|
|
263
|
+
|
|
264
|
+
export { ContainerPlugin, ContainerReferencePlugin, ModuleFederationPlugin };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export { ModuleFederationPlugin } from './ModuleFederationPlugin';
|
|
2
|
+
export declare const ContainerPlugin: typeof import("@rspack/core/dist/container/ContainerPlugin").ContainerPlugin;
|
|
3
|
+
export declare const ContainerReferencePlugin: typeof import("@rspack/core/dist/container/ContainerReferencePlugin").ContainerReferencePlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Module Federation",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"module": "./dist/index.esm.js",
|
|
20
20
|
"types": "./dist/index.cjs.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@module-federation/bridge-react-webpack-plugin": "0.
|
|
23
|
-
"@module-federation/dts-plugin": "0.
|
|
24
|
-
"@module-federation/managers": "0.
|
|
25
|
-
"@module-federation/manifest": "0.
|
|
26
|
-
"@module-federation/runtime-tools": "0.
|
|
27
|
-
"@module-federation/sdk": "0.
|
|
22
|
+
"@module-federation/bridge-react-webpack-plugin": "0.8.1",
|
|
23
|
+
"@module-federation/dts-plugin": "0.8.1",
|
|
24
|
+
"@module-federation/managers": "0.8.1",
|
|
25
|
+
"@module-federation/manifest": "0.8.1",
|
|
26
|
+
"@module-federation/runtime-tools": "0.8.1",
|
|
27
|
+
"@module-federation/sdk": "0.8.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rspack/core": "^1.0.2"
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
48
|
-
"vue-tsc": ">=1.0.24"
|
|
48
|
+
"vue-tsc": ">=1.0.24",
|
|
49
|
+
"@rspack/core": ">=0.7"
|
|
49
50
|
},
|
|
50
51
|
"peerDependenciesMeta": {
|
|
51
52
|
"typescript": {
|