@module-federation/node 0.0.0-next-20240404164914 → 0.0.0-next-20240408040658
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/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020 ScriptedAlchemy LLC (Zack Jackson)
|
|
3
|
+
Copyright (c) 2020 ScriptedAlchemy LLC (Zack Jackson) Zhou Shaw (zhouxiao)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -64,19 +64,18 @@
|
|
|
64
64
|
"process": "0.11.10",
|
|
65
65
|
"rambda": "7.5.0",
|
|
66
66
|
"resolve": "1.22.8",
|
|
67
|
-
"semver": "6.3.1",
|
|
68
67
|
"tapable": "2.2.1",
|
|
69
68
|
"unplugin": "1.9.0",
|
|
70
69
|
"upath": "2.0.1",
|
|
71
70
|
"url": "0.11.3",
|
|
72
71
|
"webpack-sources": "3.2.3",
|
|
73
72
|
"ws": "8.5.0",
|
|
74
|
-
"@module-federation/dts-plugin": "0.
|
|
75
|
-
"@module-federation/
|
|
76
|
-
"@module-federation/
|
|
77
|
-
"@module-federation/
|
|
78
|
-
"@module-federation/
|
|
79
|
-
"@module-federation/third-party-dts-extractor": "0.0.
|
|
73
|
+
"@module-federation/dts-plugin": "0.1.2",
|
|
74
|
+
"@module-federation/managers": "0.1.2",
|
|
75
|
+
"@module-federation/manifest": "0.1.2",
|
|
76
|
+
"@module-federation/native-federation-typescript": "0.1.2",
|
|
77
|
+
"@module-federation/rspack": "0.1.2",
|
|
78
|
+
"@module-federation/third-party-dts-extractor": "0.0.18"
|
|
80
79
|
},
|
|
81
80
|
"peerDependencies": {
|
|
82
81
|
"next": "^12||^13",
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
*/
|
|
9
9
|
const StreamingTargetPlugin_1 = __importDefault(require("./StreamingTargetPlugin"));
|
|
10
10
|
const NodeFederationPlugin_1 = __importDefault(require("./NodeFederationPlugin"));
|
|
11
|
-
const
|
|
11
|
+
const webpack_1 = require("@module-federation/enhanced/webpack");
|
|
12
12
|
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
13
13
|
/**
|
|
14
14
|
* Class representing a UniversalFederationPlugin
|
|
@@ -38,11 +38,11 @@ class UniversalFederationPlugin {
|
|
|
38
38
|
compiler.options.name === 'server' ||
|
|
39
39
|
compiler.options.target === 'node' ||
|
|
40
40
|
compiler.options.target === 'async-node') {
|
|
41
|
-
new NodeFederationPlugin_1.default(
|
|
41
|
+
new NodeFederationPlugin_1.default(options, this.context).apply(compiler);
|
|
42
42
|
new StreamingTargetPlugin_1.default({ ...options, debug }).apply(compiler);
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
new
|
|
45
|
+
new webpack_1.ModuleFederationPlugin(options).apply(compiler);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalFederationPlugin.js","sourceRoot":"","sources":["../../../src/plugins/UniversalFederationPlugin.ts"],"names":[],"mappings":";;;;;AAAA;;GAEG;AACH,oFAA4D;AAC5D,kFAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"UniversalFederationPlugin.js","sourceRoot":"","sources":["../../../src/plugins/UniversalFederationPlugin.ts"],"names":[],"mappings":";;;;;AAAA;;GAEG;AACH,oFAA4D;AAC5D,kFA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
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-20240408040658",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"encoding": "^0.1.13",
|
|
43
43
|
"node-fetch": "2.7.0",
|
|
44
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
45
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
46
|
-
"@module-federation/utilities": "0.0.0-next-
|
|
47
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
44
|
+
"@module-federation/enhanced": "0.0.0-next-20240408040658",
|
|
45
|
+
"@module-federation/sdk": "0.0.0-next-20240408040658",
|
|
46
|
+
"@module-federation/utilities": "0.0.0-next-20240408040658",
|
|
47
|
+
"@module-federation/runtime": "0.0.0-next-20240408040658"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"next": "^12||^13",
|