@module-federation/node 2.7.38 → 2.7.39
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/src/plugins/UniverseEntryChunkTrackerPlugin.js +2 -5
- package/dist/src/plugins/UniverseEntryChunkTrackerPlugin.js.map +1 -1
- package/dist/src/plugins/UniverseEntryChunkTrackerPlugin.mjs +2 -4
- package/dist/src/plugins/UniverseEntryChunkTrackerPlugin.mjs.map +1 -1
- package/package.json +4 -5
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
|
|
3
|
-
let btoa = require("btoa");
|
|
4
|
-
btoa = require_runtime.__toESM(btoa);
|
|
5
2
|
|
|
6
3
|
//#region src/plugins/UniverseEntryChunkTrackerPlugin.ts
|
|
7
4
|
var UniverseEntryChunkTrackerPlugin = class {
|
|
8
5
|
apply(compiler) {
|
|
9
|
-
const dataUrl = `data:text/javascript;base64,${
|
|
6
|
+
const dataUrl = `data:text/javascript;base64,${Buffer.from(`
|
|
10
7
|
if(typeof module !== 'undefined') {
|
|
11
8
|
globalThis.entryChunkCache = globalThis.entryChunkCache || new Set();
|
|
12
9
|
module.filename && globalThis.entryChunkCache.add(module.filename);
|
|
@@ -16,7 +13,7 @@ var UniverseEntryChunkTrackerPlugin = class {
|
|
|
16
13
|
})
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
|
-
|
|
16
|
+
`, "utf8").toString("base64")}`;
|
|
20
17
|
compiler.hooks.afterPlugins.tap("UniverseEntryChunkTrackerPlugin", () => {
|
|
21
18
|
new compiler.webpack.EntryPlugin(compiler.context, dataUrl, {}).apply(compiler);
|
|
22
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniverseEntryChunkTrackerPlugin.js","names":[],"sources":["../../../src/plugins/UniverseEntryChunkTrackerPlugin.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"UniverseEntryChunkTrackerPlugin.js","names":[],"sources":["../../../src/plugins/UniverseEntryChunkTrackerPlugin.ts"],"sourcesContent":["import type { WebpackPluginInstance, Compiler } from 'webpack';\n\nclass UniverseEntryChunkTrackerPlugin implements WebpackPluginInstance {\n apply(compiler: Compiler) {\n const code = `\n if(typeof module !== 'undefined') {\n globalThis.entryChunkCache = globalThis.entryChunkCache || new Set();\n module.filename && globalThis.entryChunkCache.add(module.filename);\n if(module.children) {\n module.children.forEach(function(c) {\n c.filename && globalThis.entryChunkCache.add(c.filename);\n })\n}\n }\n `;\n const base64Code = Buffer.from(code, 'utf8').toString('base64');\n const dataUrl = `data:text/javascript;base64,${base64Code}`;\n\n compiler.hooks.afterPlugins.tap('UniverseEntryChunkTrackerPlugin', () => {\n new compiler.webpack.EntryPlugin(compiler.context, dataUrl, {}).apply(\n compiler,\n );\n });\n }\n}\n\nexport default UniverseEntryChunkTrackerPlugin;\n"],"mappings":";;;AAEA,IAAM,kCAAN,MAAuE;CACrE,MAAM,UAAoB;EAaxB,MAAM,UAAU,+BADG,OAAO,KAXb;;;;;;;;;;OAWwB,OAAO,CAAC,SAAS,SAAS;AAG/D,WAAS,MAAM,aAAa,IAAI,yCAAyC;AACvE,OAAI,SAAS,QAAQ,YAAY,SAAS,SAAS,SAAS,EAAE,CAAC,CAAC,MAC9D,SACD;IACD"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import pBtoa from "btoa";
|
|
2
|
-
|
|
3
1
|
//#region src/plugins/UniverseEntryChunkTrackerPlugin.ts
|
|
4
2
|
var UniverseEntryChunkTrackerPlugin = class {
|
|
5
3
|
apply(compiler) {
|
|
6
|
-
const dataUrl = `data:text/javascript;base64,${
|
|
4
|
+
const dataUrl = `data:text/javascript;base64,${Buffer.from(`
|
|
7
5
|
if(typeof module !== 'undefined') {
|
|
8
6
|
globalThis.entryChunkCache = globalThis.entryChunkCache || new Set();
|
|
9
7
|
module.filename && globalThis.entryChunkCache.add(module.filename);
|
|
@@ -13,7 +11,7 @@ var UniverseEntryChunkTrackerPlugin = class {
|
|
|
13
11
|
})
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
`, "utf8").toString("base64")}`;
|
|
17
15
|
compiler.hooks.afterPlugins.tap("UniverseEntryChunkTrackerPlugin", () => {
|
|
18
16
|
new compiler.webpack.EntryPlugin(compiler.context, dataUrl, {}).apply(compiler);
|
|
19
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniverseEntryChunkTrackerPlugin.mjs","names":[],"sources":["../../../src/plugins/UniverseEntryChunkTrackerPlugin.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"UniverseEntryChunkTrackerPlugin.mjs","names":[],"sources":["../../../src/plugins/UniverseEntryChunkTrackerPlugin.ts"],"sourcesContent":["import type { WebpackPluginInstance, Compiler } from 'webpack';\n\nclass UniverseEntryChunkTrackerPlugin implements WebpackPluginInstance {\n apply(compiler: Compiler) {\n const code = `\n if(typeof module !== 'undefined') {\n globalThis.entryChunkCache = globalThis.entryChunkCache || new Set();\n module.filename && globalThis.entryChunkCache.add(module.filename);\n if(module.children) {\n module.children.forEach(function(c) {\n c.filename && globalThis.entryChunkCache.add(c.filename);\n })\n}\n }\n `;\n const base64Code = Buffer.from(code, 'utf8').toString('base64');\n const dataUrl = `data:text/javascript;base64,${base64Code}`;\n\n compiler.hooks.afterPlugins.tap('UniverseEntryChunkTrackerPlugin', () => {\n new compiler.webpack.EntryPlugin(compiler.context, dataUrl, {}).apply(\n compiler,\n );\n });\n }\n}\n\nexport default UniverseEntryChunkTrackerPlugin;\n"],"mappings":";AAEA,IAAM,kCAAN,MAAuE;CACrE,MAAM,UAAoB;EAaxB,MAAM,UAAU,+BADG,OAAO,KAXb;;;;;;;;;;OAWwB,OAAO,CAAC,SAAS,SAAS;AAG/D,WAAS,MAAM,aAAa,IAAI,yCAAyC;AACvE,OAAI,SAAS,QAAQ,YAAY,SAAS,SAAS,SAAS,EAAE,CAAC,CAAC,MAC9D,SACD;IACD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.39",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
7
7
|
"module": "./dist/src/index.mjs",
|
|
@@ -108,13 +108,12 @@
|
|
|
108
108
|
"author": "Zack Jackson <zackary.l.jackson@gmail.com>",
|
|
109
109
|
"license": "MIT",
|
|
110
110
|
"dependencies": {
|
|
111
|
-
"btoa": "1.2.1",
|
|
112
111
|
"encoding": "^0.1.13",
|
|
113
112
|
"node-fetch": "2.7.0",
|
|
114
113
|
"tapable": "2.3.0",
|
|
115
|
-
"@module-federation/enhanced": "2.3.
|
|
116
|
-
"@module-federation/
|
|
117
|
-
"@module-federation/
|
|
114
|
+
"@module-federation/enhanced": "2.3.1",
|
|
115
|
+
"@module-federation/sdk": "2.3.1",
|
|
116
|
+
"@module-federation/runtime": "2.3.1"
|
|
118
117
|
},
|
|
119
118
|
"peerDependencies": {
|
|
120
119
|
"webpack": "^5.40.0"
|