@module-federation/node 0.0.0-next-20240903212627 → 0.0.0-next-20240905014927
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/package.json
CHANGED
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"@module-federation/utilities": "workspace:*",
|
|
69
69
|
"@module-federation/webpack-bundler-runtime": "0.0.8",
|
|
70
70
|
"@types/btoa": "1.2.5",
|
|
71
|
-
"@types/enhanced-resolve": "5.0.0",
|
|
72
71
|
"@types/koa": "2.15.0",
|
|
73
72
|
"@types/node-schedule": "2.1.7",
|
|
74
73
|
"@types/semver": "7.5.8",
|
|
@@ -80,6 +79,7 @@
|
|
|
80
79
|
"btoa": "1.2.1",
|
|
81
80
|
"chalk": "3.0.0",
|
|
82
81
|
"encoding": "^0.1.13",
|
|
82
|
+
"enhanced-resolve": "5.15.0",
|
|
83
83
|
"find-pkg": "2.0.0",
|
|
84
84
|
"fs-extra": "9.1.0",
|
|
85
85
|
"isomorphic-ws": "5.0.0",
|
|
@@ -3,11 +3,9 @@ import type { ModuleFederationPluginOptions } from '../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for NodeFederationOptions which extends ModuleFederationPluginOptions
|
|
5
5
|
* @interface
|
|
6
|
-
* @property {Record<string, unknown>} experiments - Optional experiments configuration
|
|
7
6
|
* @property {boolean} debug - Optional debug flag
|
|
8
7
|
*/
|
|
9
8
|
interface NodeFederationOptions extends ModuleFederationPluginOptions {
|
|
10
|
-
experiments?: Record<string, unknown>;
|
|
11
9
|
debug?: boolean;
|
|
12
10
|
useRuntimePlugin?: boolean;
|
|
13
11
|
}
|
|
@@ -26,7 +24,6 @@ interface Context {
|
|
|
26
24
|
declare class NodeFederationPlugin {
|
|
27
25
|
private _options;
|
|
28
26
|
private context;
|
|
29
|
-
private experiments;
|
|
30
27
|
private useRuntimePlugin?;
|
|
31
28
|
/**
|
|
32
29
|
* Create a NodeFederationPlugin.
|
|
@@ -34,7 +31,7 @@ declare class NodeFederationPlugin {
|
|
|
34
31
|
* @param {NodeFederationOptions} options - The options for the NodeFederationPlugin
|
|
35
32
|
* @param {Context} context - The context for the NodeFederationPlugin
|
|
36
33
|
*/
|
|
37
|
-
constructor({
|
|
34
|
+
constructor({ debug, useRuntimePlugin, ...options }: NodeFederationOptions, context: Context);
|
|
38
35
|
/**
|
|
39
36
|
* Apply method for the NodeFederationPlugin class.
|
|
40
37
|
* @method
|
|
@@ -15,10 +15,9 @@ class NodeFederationPlugin {
|
|
|
15
15
|
* @param {NodeFederationOptions} options - The options for the NodeFederationPlugin
|
|
16
16
|
* @param {Context} context - The context for the NodeFederationPlugin
|
|
17
17
|
*/
|
|
18
|
-
constructor({
|
|
18
|
+
constructor({ debug, useRuntimePlugin, ...options }, context) {
|
|
19
19
|
this._options = options || {};
|
|
20
20
|
this.context = context || {};
|
|
21
|
-
this.experiments = experiments || {};
|
|
22
21
|
this.useRuntimePlugin = useRuntimePlugin || false;
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeFederationPlugin.js","sourceRoot":"","sources":["../../../src/plugins/NodeFederationPlugin.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAIb,wFAAgE;
|
|
1
|
+
{"version":3,"file":"NodeFederationPlugin.js","sourceRoot":"","sources":["../../../src/plugins/NodeFederationPlugin.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAIb,wFAAgE;AAoBhE;;;GAGG;AACH,MAAM,oBAAoB;IAKxB;;;;;OAKG;IACH,YACE,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,OAAO,EAAyB,EAC9D,OAAgB;QAEhB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAK,EAAoC,CAAC;QACjE,IAAI,CAAC,OAAO,GAAG,OAAO,IAAK,EAAc,CAAC;QAC1C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,IAAI,KAAK,C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K,QAAQ;YACjC,UAAU;YACV,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EACnC,CAAC;YACD,MAAM,MAAM,GAAG,iBAAiB,CAAC;YACjC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,OAAO,CAC3D,KAAK,EACL,MAAM,CACP,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,yBAAyB,CAAC,QAAkB,EAAE,OAAY;QAChE,IAAI,sBAAsB,CAAC;QAC3B,IAAI,CAAC;YACH,OAAO,OAAO,CAAC,6BAA6B,CAAC,CAAC,sBAAsB,CAAC;QACvE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,KAAK,CACX,2GAA2G,CAC5G,CAAC;YACF,IAAI,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC;gBACxC,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC;YAC/D,CAAC;iBAAM,IACL,OAAO;gBACP,OAAO,CAAC,SAAS;gBACjB,OAAO,CAAC,SAAS,CAAC,sBAAsB,EACxC,CAAC;gBACD,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC;YACpE,CAAC;iBAAM,CAAC;gBACN,sBAAsB,GAAG,OAAO,CAAC,8CAA8C,CAAC,CAAC;YACnF,CAAC;YACD,OAAO,sBAAsB,CAAC;QAChC,CAAC;IACH,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-20240905014927",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"btoa": "1.2.1",
|
|
65
65
|
"encoding": "^0.1.13",
|
|
66
66
|
"node-fetch": "2.7.0",
|
|
67
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
68
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
69
|
-
"@module-federation/utilities": "0.0.0-next-
|
|
70
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
67
|
+
"@module-federation/enhanced": "0.0.0-next-20240905014927",
|
|
68
|
+
"@module-federation/sdk": "0.0.0-next-20240905014927",
|
|
69
|
+
"@module-federation/utilities": "0.0.0-next-20240905014927",
|
|
70
|
+
"@module-federation/runtime": "0.0.0-next-20240905014927"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^16||^17||^18",
|