@module-federation/modern-js 0.0.0-next-20240715065227 → 0.0.0-next-20240716093738
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.
|
@@ -88,7 +88,6 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
88
88
|
mfConfig: isServer ? ssrConfig : csrConfig,
|
|
89
89
|
config,
|
|
90
90
|
isServer,
|
|
91
|
-
// MFBundlerPlugin,
|
|
92
91
|
modernjsConfig
|
|
93
92
|
});
|
|
94
93
|
userConfig.distOutputDir = ((_config_output = config.output) === null || _config_output === void 0 ? void 0 : _config_output.path) || import_path.default.resolve(process.cwd(), "dist");
|
|
@@ -87,12 +87,13 @@ const moduleFederationSSRPlugin = (userConfig) => ({
|
|
|
87
87
|
},
|
|
88
88
|
webpack(config, { isServer }) {
|
|
89
89
|
if (isServer) {
|
|
90
|
-
var _config_plugins
|
|
90
|
+
var _config_plugins;
|
|
91
91
|
if (!userConfig.nodePlugin) {
|
|
92
|
+
var _config_plugins1;
|
|
92
93
|
userConfig.nodePlugin = new import_enhanced.ModuleFederationPlugin(userConfig.ssrConfig);
|
|
94
|
+
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(userConfig.nodePlugin);
|
|
93
95
|
}
|
|
94
|
-
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(userConfig.nodePlugin);
|
|
95
|
-
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(new import_node.StreamingTargetPlugin(userConfig.nodePlugin));
|
|
96
|
+
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(new import_node.StreamingTargetPlugin(userConfig.nodePlugin));
|
|
96
97
|
if (import_constant2.isDev) {
|
|
97
98
|
var _config_plugins2;
|
|
98
99
|
(_config_plugins2 = config.plugins) === null || _config_plugins2 === void 0 ? void 0 : _config_plugins2.push(new import_node.EntryChunkTrackerPlugin());
|
|
@@ -72,7 +72,6 @@ var moduleFederationConfigPlugin = function(userConfig) {
|
|
|
72
72
|
mfConfig: isServer ? ssrConfig : csrConfig,
|
|
73
73
|
config,
|
|
74
74
|
isServer,
|
|
75
|
-
// MFBundlerPlugin,
|
|
76
75
|
modernjsConfig
|
|
77
76
|
});
|
|
78
77
|
userConfig.distOutputDir = ((_config_output = config.output) === null || _config_output === void 0 ? void 0 : _config_output.path) || path.resolve(process.cwd(), "dist");
|
|
@@ -69,12 +69,13 @@ var moduleFederationSSRPlugin = function(userConfig) {
|
|
|
69
69
|
webpack: function webpack(config, param2) {
|
|
70
70
|
var isServer = param2.isServer;
|
|
71
71
|
if (isServer) {
|
|
72
|
-
var _config_plugins
|
|
72
|
+
var _config_plugins;
|
|
73
73
|
if (!userConfig.nodePlugin) {
|
|
74
|
+
var _config_plugins1;
|
|
74
75
|
userConfig.nodePlugin = new ModuleFederationPlugin(userConfig.ssrConfig);
|
|
76
|
+
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(userConfig.nodePlugin);
|
|
75
77
|
}
|
|
76
|
-
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(userConfig.nodePlugin);
|
|
77
|
-
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(new StreamingTargetPlugin(userConfig.nodePlugin));
|
|
78
|
+
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(new StreamingTargetPlugin(userConfig.nodePlugin));
|
|
78
79
|
if (isDev) {
|
|
79
80
|
var _config_plugins2;
|
|
80
81
|
(_config_plugins2 = config.plugins) === null || _config_plugins2 === void 0 ? void 0 : _config_plugins2.push(new EntryChunkTrackerPlugin());
|
|
@@ -52,7 +52,6 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
52
52
|
mfConfig: isServer ? ssrConfig : csrConfig,
|
|
53
53
|
config,
|
|
54
54
|
isServer,
|
|
55
|
-
// MFBundlerPlugin,
|
|
56
55
|
modernjsConfig
|
|
57
56
|
});
|
|
58
57
|
userConfig.distOutputDir = ((_config_output = config.output) === null || _config_output === void 0 ? void 0 : _config_output.path) || path.resolve(process.cwd(), "dist");
|
|
@@ -52,12 +52,13 @@ const moduleFederationSSRPlugin = (userConfig) => ({
|
|
|
52
52
|
},
|
|
53
53
|
webpack(config, { isServer }) {
|
|
54
54
|
if (isServer) {
|
|
55
|
-
var _config_plugins
|
|
55
|
+
var _config_plugins;
|
|
56
56
|
if (!userConfig.nodePlugin) {
|
|
57
|
+
var _config_plugins1;
|
|
57
58
|
userConfig.nodePlugin = new ModuleFederationPlugin(userConfig.ssrConfig);
|
|
59
|
+
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(userConfig.nodePlugin);
|
|
58
60
|
}
|
|
59
|
-
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(userConfig.nodePlugin);
|
|
60
|
-
(_config_plugins1 = config.plugins) === null || _config_plugins1 === void 0 ? void 0 : _config_plugins1.push(new StreamingTargetPlugin(userConfig.nodePlugin));
|
|
61
|
+
(_config_plugins = config.plugins) === null || _config_plugins === void 0 ? void 0 : _config_plugins.push(new StreamingTargetPlugin(userConfig.nodePlugin));
|
|
61
62
|
if (isDev) {
|
|
62
63
|
var _config_plugins2;
|
|
63
64
|
(_config_plugins2 = config.plugins) === null || _config_plugins2 === void 0 ? void 0 : _config_plugins2.push(new EntryChunkTrackerPlugin());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240716093738",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"node-fetch": "~3.3.0",
|
|
62
62
|
"react-error-boundary": "4.0.13",
|
|
63
63
|
"hoist-non-react-statics": "3.3.2",
|
|
64
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
65
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
66
|
-
"@module-federation/node": "0.0.0-next-
|
|
64
|
+
"@module-federation/sdk": "0.0.0-next-20240716093738",
|
|
65
|
+
"@module-federation/enhanced": "0.0.0-next-20240716093738",
|
|
66
|
+
"@module-federation/node": "0.0.0-next-20240716093738"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/hoist-non-react-statics": "3.3.2",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@modern-js/runtime": "^2.55.0",
|
|
73
73
|
"@modern-js/module-tools": "^2.55.0",
|
|
74
74
|
"@modern-js/tsconfig": "^2.55.0",
|
|
75
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
75
|
+
"@module-federation/manifest": "0.0.0-next-20240716093738"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": ">=17",
|