@module-federation/nextjs-mf 8.3.3 → 8.3.4
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 +5 -7
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js +2 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js +2 -2
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js.map +1 -1
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.d.ts +39 -0
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js +72 -0
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js.map +1 -0
- package/package.json +6 -6
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/nextjs-mf",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -74,16 +74,14 @@
|
|
|
74
74
|
"resolve": "1.22.8",
|
|
75
75
|
"schema-utils": "3.3.0",
|
|
76
76
|
"tapable": "2.2.1",
|
|
77
|
-
"unplugin": "1.9.0",
|
|
78
77
|
"upath": "2.0.1",
|
|
79
78
|
"url": "0.11.3",
|
|
80
79
|
"webpack-sources": "^3.2.3",
|
|
81
80
|
"ws": "8.5.0",
|
|
82
|
-
"@module-federation/dts-plugin": "0.1.
|
|
83
|
-
"@module-federation/managers": "0.1.
|
|
84
|
-
"@module-federation/manifest": "0.1.
|
|
85
|
-
"@module-federation/
|
|
86
|
-
"@module-federation/rspack": "0.1.2",
|
|
81
|
+
"@module-federation/dts-plugin": "0.1.3",
|
|
82
|
+
"@module-federation/managers": "0.1.3",
|
|
83
|
+
"@module-federation/manifest": "0.1.3",
|
|
84
|
+
"@module-federation/rspack": "0.1.3",
|
|
87
85
|
"@module-federation/third-party-dts-extractor": "0.0.18"
|
|
88
86
|
},
|
|
89
87
|
"peerDependencies": {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.applyClientPlugins = void 0;
|
|
7
7
|
const node_1 = require("@module-federation/node");
|
|
8
8
|
const InvertedContainerPlugin_1 = __importDefault(require("../container/InvertedContainerPlugin"));
|
|
9
|
+
const enhanced_1 = require("@module-federation/enhanced");
|
|
9
10
|
/**
|
|
10
11
|
* Applies client-specific plugins.
|
|
11
12
|
*
|
|
@@ -54,6 +55,7 @@ function applyClientPlugins(compiler, options, extraOptions) {
|
|
|
54
55
|
],
|
|
55
56
|
//@ts-ignore
|
|
56
57
|
}).apply(compiler);
|
|
58
|
+
new enhanced_1.HoistContainerReferencesPlugin().apply(compiler);
|
|
57
59
|
// Add a new commonjs chunk loading plugin to the compiler
|
|
58
60
|
new InvertedContainerPlugin_1.default({
|
|
59
61
|
runtime: 'webpack',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-client-plugins.js","sourceRoot":"","sources":["../../../../src/plugins/NextFederationPlugin/apply-client-plugins.ts"],"names":[],"mappings":";;;;;;AAKA,kDAAiE;AACjE,mGAA2E;
|
|
1
|
+
{"version":3,"file":"apply-client-plugins.js","sourceRoot":"","sources":["../../../../src/plugins/NextFederationPlugin/apply-client-plugins.ts"],"names":[],"mappings":";;;;;;AAKA,kDAAiE;AACjE,mGAA2E;AAC3E,0DAA6E;AAC7E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,kBAAkB,CAChC,QAAkB,EAClB,OAAsC,EACtC,YAA8C;IAE9C,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAC7B,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAClC,YAAY;IACZ,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;IAC5C,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,GAAG,SAAS,CAAC;IAEtD,wFAAwF;IACxF,IAAI,YAAY,CAAC,sBAAsB,EAAE,CAAC;QACxC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,4CAA4C,CAAC,CAAC;IAC5E,CAAC;IAED,mDAAmD;IACnD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC7D,CAAC;IAED,6FAA6F;IAC7F,OAAO,CAAC,OAAO,GAAG;QAChB,IAAI,EAAE,QAAQ;QACd,IAAI;KACL,CAAC;IAEF,qDAAqD;IACrD,IAAI,6BAAsB,CAAC;QACzB,QAAQ,EAAE;YACR,oCAAoC;YACpC,6BAA6B;SAC9B;QACD,YAAY;KACb,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEnB,IAAI,yCAA8B,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAErD,0DAA0D;IAC1D,IAAI,iCAAuB,CAAC;QAC1B,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,gBAAgB;QAC9B,SAAS,EAAE,OAAO,CAAC,IAAI;QACvB,OAAO,EAAE,OAAO,CAAC,OAAiC;QAClD,MAAM,EAAE,OAAO,CAAC,MAAa;QAC7B,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,OAAO,CAAC,OAAc;QAC/B,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,YAAY;KACb,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACrB,CAAC;AAnDD,gDAmDC"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configureServerCompilerOptions = exports.handleServerExternals = exports.configureServerLibraryAndFilename = exports.applyServerPlugins = void 0;
|
|
7
|
+
const enhanced_1 = require("@module-federation/enhanced");
|
|
7
8
|
const path_1 = __importDefault(require("path"));
|
|
8
9
|
const InvertedContainerPlugin_1 = __importDefault(require("../container/InvertedContainerPlugin"));
|
|
9
10
|
const webpack_1 = require("@module-federation/enhanced/webpack");
|
|
@@ -26,12 +27,11 @@ function applyServerPlugins(compiler, options) {
|
|
|
26
27
|
const suffix = `-[chunkhash].js`;
|
|
27
28
|
compiler.options.output.chunkFilename = chunkFileName.replace('.js', suffix);
|
|
28
29
|
}
|
|
29
|
-
// Hoist container references into runtime chunks
|
|
30
|
-
//@ts-ignore
|
|
31
30
|
// Add the StreamingTargetPlugin with the ModuleFederationPlugin from the webpack container
|
|
32
31
|
new StreamingTargetPlugin(options, {
|
|
33
32
|
ModuleFederationPlugin: webpack_1.ModuleFederationPlugin,
|
|
34
33
|
}).apply(compiler);
|
|
34
|
+
new enhanced_1.HoistContainerReferencesPlugin().apply(compiler);
|
|
35
35
|
// Add a new commonjs chunk loading plugin to the compiler
|
|
36
36
|
new InvertedContainerPlugin_1.default({
|
|
37
37
|
runtime: 'webpack-runtime',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-server-plugins.js","sourceRoot":"","sources":["../../../../src/plugins/NextFederationPlugin/apply-server-plugins.ts"],"names":[],"mappings":";;;;;;AAEA,gDAAwB;AACxB,mGAA2E;AAC3E,iEAA6E;AAC7E;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAChC,QAAkB,EAClB,OAAsC;IAEtC,gEAAgE;IAChE,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC;IAC9D,MAAM,UAAU,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IACzE,IACE,OAAO,aAAa,KAAK,QAAQ;QACjC,UAAU;QACV,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EACnC,CAAC;QACD,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,OAAO,CAC3D,KAAK,EACL,MAAM,CACP,CAAC;IACJ,CAAC;IACD,
|
|
1
|
+
{"version":3,"file":"apply-server-plugins.js","sourceRoot":"","sources":["../../../../src/plugins/NextFederationPlugin/apply-server-plugins.ts"],"names":[],"mappings":";;;;;;AAEA,0DAA6E;AAC7E,gDAAwB;AACxB,mGAA2E;AAC3E,iEAA6E;AAC7E;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAChC,QAAkB,EAClB,OAAsC;IAEtC,gEAAgE;IAChE,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC;IAC9D,MAAM,UAAU,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IACzE,IACE,OAAO,aAAa,KAAK,QAAQ;QACjC,UAAU;QACV,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EACnC,CAAC;QACD,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,OAAO,CAC3D,KAAK,EACL,MAAM,CACP,CAAC;IACJ,CAAC;IACD,2FAA2F;IAC3F,IAAI,qBAAqB,CAAC,OAAO,EAAE;QACjC,sBAAsB,EAAE,gCAAsB;KAC/C,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEnB,IAAI,yCAA8B,EAAE,CAAC,KAAK,CAAC,QAAQ,CAA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;;GAYG;AACH,SAAgB,8BAA8B,CAAC,QAAkB;IAC/D,kGAAkG;IAClG,sDAAsD;IACtD,QAAQ,CAAC,OAAO,CAAC,IAAI,GAAG;QACtB,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI;QACxB,MAAM,EAAE,KAAK;KACd,CAAC;IACF,wBAAwB;IACxB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,GAAG,SAAS,CAAC;IAEtD,iEAAiE;IACjE,oDAAoD;IACpD,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,YAAY,GAAG;QAC3C,IAAI,EAAE,iBAAiB;KACxB,CAAC;AACJ,CAAC;AAfD,wEAeC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Compiler } from 'webpack';
|
|
2
|
+
/**
|
|
3
|
+
* This plugin removes eager modules from the runtime.
|
|
4
|
+
* @class RemoveEagerModulesFromRuntimePlugin
|
|
5
|
+
*/
|
|
6
|
+
declare class RemoveEagerModulesFromRuntimePlugin {
|
|
7
|
+
private container;
|
|
8
|
+
private debug;
|
|
9
|
+
private modulesToProcess;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of RemoveEagerModulesFromRuntimePlugin.
|
|
12
|
+
* @param {Object} options - The options for the plugin.
|
|
13
|
+
* @param {string} options.container - The container to remove modules from.
|
|
14
|
+
* @param {boolean} options.debug - Whether to log debug information.
|
|
15
|
+
*/
|
|
16
|
+
constructor(options: {
|
|
17
|
+
container?: string;
|
|
18
|
+
debug?: boolean;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Applies the plugin to the compiler.
|
|
22
|
+
* @param {Compiler} compiler - The webpack compiler.
|
|
23
|
+
*/
|
|
24
|
+
apply(compiler: Compiler): void;
|
|
25
|
+
/**
|
|
26
|
+
* Processes the modules in the chunk.
|
|
27
|
+
* @param {Compilation} compilation - The webpack compilation.
|
|
28
|
+
* @param {Chunk} chunk - The chunk to process.
|
|
29
|
+
* @param {Iterable<Module>} modules - The modules in the chunk.
|
|
30
|
+
*/
|
|
31
|
+
private processModules;
|
|
32
|
+
/**
|
|
33
|
+
* Removes the modules from the chunk.
|
|
34
|
+
* @param {Compilation} compilation - The webpack compilation.
|
|
35
|
+
* @param {Chunk} chunk - The chunk to remove modules from.
|
|
36
|
+
*/
|
|
37
|
+
private removeModules;
|
|
38
|
+
}
|
|
39
|
+
export default RemoveEagerModulesFromRuntimePlugin;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* This plugin removes eager modules from the runtime.
|
|
5
|
+
* @class RemoveEagerModulesFromRuntimePlugin
|
|
6
|
+
*/
|
|
7
|
+
class RemoveEagerModulesFromRuntimePlugin {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an instance of RemoveEagerModulesFromRuntimePlugin.
|
|
10
|
+
* @param {Object} options - The options for the plugin.
|
|
11
|
+
* @param {string} options.container - The container to remove modules from.
|
|
12
|
+
* @param {boolean} options.debug - Whether to log debug information.
|
|
13
|
+
*/
|
|
14
|
+
constructor(options) {
|
|
15
|
+
this.container = options.container;
|
|
16
|
+
this.debug = options.debug || false;
|
|
17
|
+
this.modulesToProcess = new Set();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Applies the plugin to the compiler.
|
|
21
|
+
* @param {Compiler} compiler - The webpack compiler.
|
|
22
|
+
*/
|
|
23
|
+
apply(compiler) {
|
|
24
|
+
if (!this.container) {
|
|
25
|
+
console.warn('[nextjs-mf]:', 'RemoveEagerModulesFromRuntimePlugin container is not defined:', this.container);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
compiler.hooks.thisCompilation.tap('RemoveEagerModulesFromRuntimePlugin', (compilation) => {
|
|
29
|
+
compilation.hooks.optimizeChunkModules.tap('RemoveEagerModulesFromRuntimePlugin', (chunks, modules) => {
|
|
30
|
+
for (const chunk of chunks) {
|
|
31
|
+
if (chunk.hasRuntime() && chunk.name === this.container) {
|
|
32
|
+
this.processModules(compilation, chunk, modules);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Processes the modules in the chunk.
|
|
40
|
+
* @param {Compilation} compilation - The webpack compilation.
|
|
41
|
+
* @param {Chunk} chunk - The chunk to process.
|
|
42
|
+
* @param {Iterable<Module>} modules - The modules in the chunk.
|
|
43
|
+
*/
|
|
44
|
+
processModules(compilation, chunk, modules) {
|
|
45
|
+
for (const module of modules) {
|
|
46
|
+
if (!compilation.chunkGraph.isModuleInChunk(module, chunk)) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if (module.constructor.name === 'NormalModule') {
|
|
50
|
+
this.modulesToProcess.add(module);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
this.removeModules(compilation, chunk);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Removes the modules from the chunk.
|
|
57
|
+
* @param {Compilation} compilation - The webpack compilation.
|
|
58
|
+
* @param {Chunk} chunk - The chunk to remove modules from.
|
|
59
|
+
*/
|
|
60
|
+
removeModules(compilation, chunk) {
|
|
61
|
+
for (const moduleToRemove of this.modulesToProcess) {
|
|
62
|
+
if (this.debug) {
|
|
63
|
+
console.log('removing', moduleToRemove.constructor.name);
|
|
64
|
+
}
|
|
65
|
+
if (compilation.chunkGraph.isModuleInChunk(moduleToRemove, chunk)) {
|
|
66
|
+
compilation.chunkGraph.disconnectChunkAndModule(chunk, moduleToRemove);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.default = RemoveEagerModulesFromRuntimePlugin;
|
|
72
|
+
//# sourceMappingURL=RemoveEagerModulesFromRuntimePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveEagerModulesFromRuntimePlug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,EAAE,CAAC;gBAC3D,SAAS;YACX,CAAC;YAED,IAAI,MAAM,CAAC,WAAW,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;gBAC/C,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACK,aAAa,CAAC,WAAwB,EAAE,KAAY;QAC1D,KAAK,MAAM,cAAc,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACnD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAC3D,CAAC;YAED,IAAI,WAAW,CAAC,UAAU,CAAC,eAAe,CAAC,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;gBAClE,WAAW,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,kBAAe,mCAAmC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/nextjs-mf",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"fast-glob": "^3.2.11",
|
|
42
42
|
"webpack-sources": "^3.2.3",
|
|
43
43
|
"eventemitter3": "^5.0.0",
|
|
44
|
-
"@module-federation/utilities": "3.0.
|
|
45
|
-
"@module-federation/runtime": "0.1.
|
|
46
|
-
"@module-federation/sdk": "0.1.
|
|
47
|
-
"@module-federation/enhanced": "0.1.
|
|
48
|
-
"@module-federation/node": "2.1.
|
|
44
|
+
"@module-federation/utilities": "3.0.8",
|
|
45
|
+
"@module-federation/runtime": "0.1.3",
|
|
46
|
+
"@module-federation/sdk": "0.1.3",
|
|
47
|
+
"@module-federation/enhanced": "0.1.3",
|
|
48
|
+
"@module-federation/node": "2.1.3",
|
|
49
49
|
"@module-federation/webpack-type": "0.0.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|