@module-federation/node 2.6.31 → 2.6.33
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 +1 -1
- package/dist/src/runtimePlugin.d.ts +16 -0
- package/dist/src/runtimePlugin.js +236 -193
- package/dist/src/runtimePlugin.js.map +1 -1
- package/package.json +5 -5
package/dist/package.json
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import type { FederationRuntimePlugin } from '@module-federation/runtime';
|
|
2
|
+
export declare function importNodeModule<T>(name: string): Promise<T>;
|
|
3
|
+
export declare const resolveFile: (rootOutputDir: string, chunkId: string) => string;
|
|
4
|
+
export declare const returnFromCache: (remoteName: string) => string | null;
|
|
5
|
+
export declare const returnFromGlobalInstances: (remoteName: string) => string | null;
|
|
6
|
+
export declare const loadFromFs: (filename: string, callback: (err: Error | null, chunk: any) => void) => void;
|
|
7
|
+
export declare const fetchAndRun: (url: URL, chunkName: string, callback: (err: Error | null, chunk: any) => void, args: any) => void;
|
|
8
|
+
export declare const resolveUrl: (remoteName: string, chunkName: string) => URL | null;
|
|
9
|
+
export declare const loadChunk: (strategy: string, chunkId: string, rootOutputDir: string, callback: (err: Error | null, chunk: any) => void, args: any) => void;
|
|
10
|
+
export declare const installChunk: (chunk: any, installedChunks: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
export declare const setupScriptLoader: () => void;
|
|
14
|
+
export declare const setupChunkHandler: (installedChunks: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}, args: any) => ((chunkId: string, promises: any[]) => void);
|
|
17
|
+
export declare const setupWebpackRequirePatching: (handle: (chunkId: string, promises: any[]) => void) => void;
|
|
2
18
|
export default function (): FederationRuntimePlugin;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupWebpackRequirePatching = exports.setupChunkHandler = exports.setupScriptLoader = exports.installChunk = exports.loadChunk = exports.resolveUrl = exports.fetchAndRun = exports.loadFromFs = exports.returnFromGlobalInstances = exports.returnFromCache = exports.resolveFile = void 0;
|
|
4
|
+
exports.importNodeModule = importNodeModule;
|
|
3
5
|
exports.default = default_1;
|
|
4
6
|
function importNodeModule(name) {
|
|
5
7
|
if (!name) {
|
|
@@ -13,206 +15,247 @@ function importNodeModule(name) {
|
|
|
13
15
|
throw error;
|
|
14
16
|
});
|
|
15
17
|
}
|
|
18
|
+
// Hoisted utility function to resolve file paths for chunks
|
|
19
|
+
const resolveFile = (rootOutputDir, chunkId) => {
|
|
20
|
+
const path = __non_webpack_require__('path');
|
|
21
|
+
return path.join(__dirname, rootOutputDir + __webpack_require__.u(chunkId));
|
|
22
|
+
};
|
|
23
|
+
exports.resolveFile = resolveFile;
|
|
24
|
+
// Hoisted utility function to get remote entry from cache
|
|
25
|
+
const returnFromCache = (remoteName) => {
|
|
26
|
+
const globalThisVal = new Function('return globalThis')();
|
|
27
|
+
const federationInstances = globalThisVal['__FEDERATION__']['__INSTANCES__'];
|
|
28
|
+
for (const instance of federationInstances) {
|
|
29
|
+
const moduleContainer = instance.moduleCache.get(remoteName);
|
|
30
|
+
if (moduleContainer?.remoteInfo)
|
|
31
|
+
return moduleContainer.remoteInfo.entry;
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
};
|
|
35
|
+
exports.returnFromCache = returnFromCache;
|
|
36
|
+
// Hoisted utility function to get remote entry from global instances
|
|
37
|
+
const returnFromGlobalInstances = (remoteName) => {
|
|
38
|
+
const globalThisVal = new Function('return globalThis')();
|
|
39
|
+
const federationInstances = globalThisVal['__FEDERATION__']['__INSTANCES__'];
|
|
40
|
+
for (const instance of federationInstances) {
|
|
41
|
+
for (const remote of instance.options.remotes) {
|
|
42
|
+
if (remote.name === remoteName || remote.alias === remoteName) {
|
|
43
|
+
console.log('Backup remote entry found:', remote.entry);
|
|
44
|
+
return remote.entry;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
exports.returnFromGlobalInstances = returnFromGlobalInstances;
|
|
51
|
+
// Hoisted utility function to load chunks from filesystem
|
|
52
|
+
const loadFromFs = (filename, callback) => {
|
|
53
|
+
const fs = __non_webpack_require__('fs');
|
|
54
|
+
const path = __non_webpack_require__('path');
|
|
55
|
+
const vm = __non_webpack_require__('vm');
|
|
56
|
+
if (fs.existsSync(filename)) {
|
|
57
|
+
fs.readFile(filename, 'utf-8', (err, content) => {
|
|
58
|
+
if (err)
|
|
59
|
+
return callback(err, null);
|
|
60
|
+
const chunk = {};
|
|
61
|
+
try {
|
|
62
|
+
const script = new vm.Script(`(function(exports, require, __dirname, __filename) {${content}\n})`, {
|
|
63
|
+
filename,
|
|
64
|
+
importModuleDynamically:
|
|
65
|
+
//@ts-ignore
|
|
66
|
+
vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER ?? importNodeModule,
|
|
67
|
+
});
|
|
68
|
+
script.runInThisContext()(chunk, __non_webpack_require__, path.dirname(filename), filename);
|
|
69
|
+
callback(null, chunk);
|
|
70
|
+
}
|
|
71
|
+
catch (e) {
|
|
72
|
+
console.log("'runInThisContext threw'", e);
|
|
73
|
+
callback(e, null);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
callback(new Error(`File ${filename} does not exist`), null);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
exports.loadFromFs = loadFromFs;
|
|
82
|
+
// Hoisted utility function to fetch and execute chunks from remote URLs
|
|
83
|
+
const fetchAndRun = (url, chunkName, callback, args) => {
|
|
84
|
+
(typeof fetch === 'undefined'
|
|
85
|
+
? importNodeModule('node-fetch').then((mod) => mod.default)
|
|
86
|
+
: Promise.resolve(fetch))
|
|
87
|
+
.then((fetchFunction) => {
|
|
88
|
+
return args.origin.loaderHook.lifecycle.fetch
|
|
89
|
+
.emit(url.href, {})
|
|
90
|
+
.then((res) => {
|
|
91
|
+
if (!res || !(res instanceof Response)) {
|
|
92
|
+
return fetchFunction(url.href).then((response) => response.text());
|
|
93
|
+
}
|
|
94
|
+
return res.text();
|
|
95
|
+
});
|
|
96
|
+
})
|
|
97
|
+
.then((data) => {
|
|
98
|
+
const chunk = {};
|
|
99
|
+
try {
|
|
100
|
+
eval(`(function(exports, require, __dirname, __filename) {${data}\n})`)(chunk, __non_webpack_require__, url.pathname.split('/').slice(0, -1).join('/'), chunkName);
|
|
101
|
+
callback(null, chunk);
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
callback(e, null);
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
.catch((err) => callback(err, null));
|
|
108
|
+
};
|
|
109
|
+
exports.fetchAndRun = fetchAndRun;
|
|
110
|
+
// Hoisted utility function to resolve URLs for chunks
|
|
111
|
+
const resolveUrl = (remoteName, chunkName) => {
|
|
112
|
+
try {
|
|
113
|
+
return new URL(chunkName, __webpack_require__.p);
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
const entryUrl = (0, exports.returnFromCache)(remoteName) || (0, exports.returnFromGlobalInstances)(remoteName);
|
|
117
|
+
if (!entryUrl)
|
|
118
|
+
return null;
|
|
119
|
+
const url = new URL(entryUrl);
|
|
120
|
+
const path = __non_webpack_require__('path');
|
|
121
|
+
// Extract the directory path from the remote entry URL
|
|
122
|
+
// e.g., from "http://url/static/js/remoteEntry.js" to "/static/js/"
|
|
123
|
+
const urlPath = url.pathname;
|
|
124
|
+
const lastSlashIndex = urlPath.lastIndexOf('/');
|
|
125
|
+
const directoryPath = lastSlashIndex >= 0 ? urlPath.substring(0, lastSlashIndex + 1) : '/';
|
|
126
|
+
// Get rootDir from webpack configuration
|
|
127
|
+
const rootDir = __webpack_require__.federation.rootOutputDir || '';
|
|
128
|
+
// Use path.join to combine the paths properly while handling slashes
|
|
129
|
+
// Convert Windows-style paths to URL-style paths
|
|
130
|
+
const combinedPath = path
|
|
131
|
+
.join(directoryPath, rootDir, chunkName)
|
|
132
|
+
.replace(/\\/g, '/');
|
|
133
|
+
// Create the final URL
|
|
134
|
+
return new URL(combinedPath, url.origin);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.resolveUrl = resolveUrl;
|
|
138
|
+
// Hoisted utility function to load chunks based on different strategies
|
|
139
|
+
const loadChunk = (strategy, chunkId, rootOutputDir, callback, args) => {
|
|
140
|
+
if (strategy === 'filesystem') {
|
|
141
|
+
return (0, exports.loadFromFs)((0, exports.resolveFile)(rootOutputDir, chunkId), callback);
|
|
142
|
+
}
|
|
143
|
+
const url = (0, exports.resolveUrl)(rootOutputDir, chunkId);
|
|
144
|
+
if (!url)
|
|
145
|
+
return callback(null, { modules: {}, ids: [], runtime: null });
|
|
146
|
+
// Using fetchAndRun directly with args
|
|
147
|
+
(0, exports.fetchAndRun)(url, chunkId, callback, args);
|
|
148
|
+
};
|
|
149
|
+
exports.loadChunk = loadChunk;
|
|
150
|
+
// Hoisted utility function to install a chunk into webpack
|
|
151
|
+
const installChunk = (chunk, installedChunks) => {
|
|
152
|
+
for (const moduleId in chunk.modules) {
|
|
153
|
+
__webpack_require__.m[moduleId] = chunk.modules[moduleId];
|
|
154
|
+
}
|
|
155
|
+
if (chunk.runtime)
|
|
156
|
+
chunk.runtime(__webpack_require__);
|
|
157
|
+
for (const chunkId of chunk.ids) {
|
|
158
|
+
if (installedChunks[chunkId])
|
|
159
|
+
installedChunks[chunkId][0]();
|
|
160
|
+
installedChunks[chunkId] = 0;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
exports.installChunk = installChunk;
|
|
164
|
+
// Hoisted function to set up webpack script loader
|
|
165
|
+
const setupScriptLoader = () => {
|
|
166
|
+
__webpack_require__.l = (url, done, key, chunkId) => {
|
|
167
|
+
if (!key || chunkId)
|
|
168
|
+
throw new Error(`__webpack_require__.l name is required for ${url}`);
|
|
169
|
+
__webpack_require__.federation.runtime
|
|
170
|
+
.loadScriptNode(url, { attrs: { globalName: key } })
|
|
171
|
+
.then((res) => {
|
|
172
|
+
const enhancedRemote = __webpack_require__.federation.instance.initRawContainer(key, url, res);
|
|
173
|
+
new Function('return globalThis')()[key] = enhancedRemote;
|
|
174
|
+
done(enhancedRemote);
|
|
175
|
+
})
|
|
176
|
+
.catch(done);
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
exports.setupScriptLoader = setupScriptLoader;
|
|
180
|
+
// Hoisted function to set up chunk handler
|
|
181
|
+
const setupChunkHandler = (installedChunks, args) => {
|
|
182
|
+
return (chunkId, promises) => {
|
|
183
|
+
let installedChunkData = installedChunks[chunkId];
|
|
184
|
+
if (installedChunkData !== 0) {
|
|
185
|
+
if (installedChunkData) {
|
|
186
|
+
promises.push(installedChunkData[2]);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
const matcher = __webpack_require__.federation.chunkMatcher
|
|
190
|
+
? __webpack_require__.federation.chunkMatcher(chunkId)
|
|
191
|
+
: true;
|
|
192
|
+
if (matcher) {
|
|
193
|
+
const promise = new Promise((resolve, reject) => {
|
|
194
|
+
installedChunkData = installedChunks[chunkId] = [resolve, reject];
|
|
195
|
+
const fs = typeof process !== 'undefined'
|
|
196
|
+
? __non_webpack_require__('fs')
|
|
197
|
+
: false;
|
|
198
|
+
const filename = typeof process !== 'undefined'
|
|
199
|
+
? (0, exports.resolveFile)(__webpack_require__.federation.rootOutputDir || '', chunkId)
|
|
200
|
+
: false;
|
|
201
|
+
if (fs && fs.existsSync(filename)) {
|
|
202
|
+
(0, exports.loadChunk)('filesystem', chunkId, __webpack_require__.federation.rootOutputDir || '', (err, chunk) => {
|
|
203
|
+
if (err)
|
|
204
|
+
return reject(err);
|
|
205
|
+
if (chunk)
|
|
206
|
+
(0, exports.installChunk)(chunk, installedChunks);
|
|
207
|
+
resolve(chunk);
|
|
208
|
+
}, args);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
const chunkName = __webpack_require__.u(chunkId);
|
|
212
|
+
const loadingStrategy = typeof process === 'undefined' ? 'http-eval' : 'http-vm';
|
|
213
|
+
(0, exports.loadChunk)(loadingStrategy, chunkName, __webpack_require__.federation.initOptions.name, (err, chunk) => {
|
|
214
|
+
if (err)
|
|
215
|
+
return reject(err);
|
|
216
|
+
if (chunk)
|
|
217
|
+
(0, exports.installChunk)(chunk, installedChunks);
|
|
218
|
+
resolve(chunk);
|
|
219
|
+
}, args);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
promises.push((installedChunkData[2] = promise));
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
installedChunks[chunkId] = 0;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
exports.setupChunkHandler = setupChunkHandler;
|
|
232
|
+
// Hoisted function to set up webpack require patching
|
|
233
|
+
const setupWebpackRequirePatching = (handle) => {
|
|
234
|
+
if (__webpack_require__.f) {
|
|
235
|
+
if (__webpack_require__.f.require) {
|
|
236
|
+
console.warn('\x1b[33m%s\x1b[0m', 'CAUTION: build target is not set to "async-node", attempting to patch additional chunk handlers. This may not work');
|
|
237
|
+
__webpack_require__.f.require = handle;
|
|
238
|
+
}
|
|
239
|
+
if (__webpack_require__.f.readFileVm) {
|
|
240
|
+
__webpack_require__.f.readFileVm = handle;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
exports.setupWebpackRequirePatching = setupWebpackRequirePatching;
|
|
16
245
|
function default_1() {
|
|
17
246
|
return {
|
|
18
247
|
name: 'node-federation-plugin',
|
|
19
248
|
beforeInit(args) {
|
|
20
249
|
// Patch webpack chunk loading handlers
|
|
21
250
|
(() => {
|
|
22
|
-
|
|
23
|
-
const path = __non_webpack_require__('path');
|
|
24
|
-
return path.join(__dirname, rootOutputDir + __webpack_require__.u(chunkId));
|
|
25
|
-
};
|
|
26
|
-
const resolveUrl = (remoteName, chunkName) => {
|
|
27
|
-
try {
|
|
28
|
-
return new URL(chunkName, __webpack_require__.p);
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
const entryUrl = returnFromCache(remoteName) ||
|
|
32
|
-
returnFromGlobalInstances(remoteName);
|
|
33
|
-
if (!entryUrl)
|
|
34
|
-
return null;
|
|
35
|
-
const url = new URL(entryUrl);
|
|
36
|
-
const path = __non_webpack_require__('path');
|
|
37
|
-
url.pathname = url.pathname.replace(path.basename(url.pathname), chunkName);
|
|
38
|
-
return url;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const returnFromCache = (remoteName) => {
|
|
42
|
-
const globalThisVal = new Function('return globalThis')();
|
|
43
|
-
const federationInstances = globalThisVal['__FEDERATION__']['__INSTANCES__'];
|
|
44
|
-
for (const instance of federationInstances) {
|
|
45
|
-
const moduleContainer = instance.moduleCache.get(remoteName);
|
|
46
|
-
if (moduleContainer?.remoteInfo)
|
|
47
|
-
return moduleContainer.remoteInfo.entry;
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
};
|
|
51
|
-
const returnFromGlobalInstances = (remoteName) => {
|
|
52
|
-
const globalThisVal = new Function('return globalThis')();
|
|
53
|
-
const federationInstances = globalThisVal['__FEDERATION__']['__INSTANCES__'];
|
|
54
|
-
for (const instance of federationInstances) {
|
|
55
|
-
for (const remote of instance.options.remotes) {
|
|
56
|
-
if (remote.name === remoteName || remote.alias === remoteName) {
|
|
57
|
-
console.log('Backup remote entry found:', remote.entry);
|
|
58
|
-
return remote.entry;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return null;
|
|
63
|
-
};
|
|
64
|
-
const loadFromFs = (filename, callback) => {
|
|
65
|
-
const fs = __non_webpack_require__('fs');
|
|
66
|
-
const path = __non_webpack_require__('path');
|
|
67
|
-
const vm = __non_webpack_require__('vm');
|
|
68
|
-
if (fs.existsSync(filename)) {
|
|
69
|
-
fs.readFile(filename, 'utf-8', (err, content) => {
|
|
70
|
-
if (err)
|
|
71
|
-
return callback(err, null);
|
|
72
|
-
const chunk = {};
|
|
73
|
-
try {
|
|
74
|
-
const script = new vm.Script(`(function(exports, require, __dirname, __filename) {${content}\n})`, {
|
|
75
|
-
filename,
|
|
76
|
-
importModuleDynamically:
|
|
77
|
-
//@ts-ignore
|
|
78
|
-
vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER ??
|
|
79
|
-
importNodeModule,
|
|
80
|
-
});
|
|
81
|
-
script.runInThisContext()(chunk, __non_webpack_require__, path.dirname(filename), filename);
|
|
82
|
-
callback(null, chunk);
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
console.log("'runInThisContext threw'", e);
|
|
86
|
-
callback(e, null);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
callback(new Error(`File ${filename} does not exist`), null);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const fetchAndRun = (url, chunkName, callback) => {
|
|
95
|
-
(typeof fetch === 'undefined'
|
|
96
|
-
? importNodeModule('node-fetch').then((mod) => mod.default)
|
|
97
|
-
: Promise.resolve(fetch))
|
|
98
|
-
.then((fetchFunction) => {
|
|
99
|
-
return args.origin.loaderHook.lifecycle.fetch
|
|
100
|
-
.emit(url.href, {})
|
|
101
|
-
.then((res) => {
|
|
102
|
-
if (!res || !(res instanceof Response)) {
|
|
103
|
-
return fetchFunction(url.href).then((response) => response.text());
|
|
104
|
-
}
|
|
105
|
-
return res.text();
|
|
106
|
-
});
|
|
107
|
-
})
|
|
108
|
-
.then((data) => {
|
|
109
|
-
const chunk = {};
|
|
110
|
-
try {
|
|
111
|
-
eval(`(function(exports, require, __dirname, __filename) {${data}\n})`)(chunk, __non_webpack_require__, url.pathname.split('/').slice(0, -1).join('/'), chunkName);
|
|
112
|
-
callback(null, chunk);
|
|
113
|
-
}
|
|
114
|
-
catch (e) {
|
|
115
|
-
callback(e, null);
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
.catch((err) => callback(err, null));
|
|
119
|
-
};
|
|
120
|
-
const loadChunk = (strategy, chunkId, rootOutputDir, callback) => {
|
|
121
|
-
if (strategy === 'filesystem') {
|
|
122
|
-
return loadFromFs(resolveFile(rootOutputDir, chunkId), callback);
|
|
123
|
-
}
|
|
124
|
-
const url = resolveUrl(rootOutputDir, chunkId);
|
|
125
|
-
if (!url)
|
|
126
|
-
return callback(null, { modules: {}, ids: [], runtime: null });
|
|
127
|
-
fetchAndRun(url, chunkId, callback);
|
|
128
|
-
};
|
|
251
|
+
// Create the chunk tracking object
|
|
129
252
|
const installedChunks = {};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
for (const chunkId of chunk.ids) {
|
|
137
|
-
if (installedChunks[chunkId])
|
|
138
|
-
installedChunks[chunkId][0]();
|
|
139
|
-
installedChunks[chunkId] = 0;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
__webpack_require__.l = (url, done, key, chunkId) => {
|
|
143
|
-
if (!key || chunkId)
|
|
144
|
-
throw new Error(`__webpack_require__.l name is required for ${url}`);
|
|
145
|
-
__webpack_require__.federation.runtime
|
|
146
|
-
.loadScriptNode(url, { attrs: { globalName: key } })
|
|
147
|
-
.then((res) => {
|
|
148
|
-
const enhancedRemote = __webpack_require__.federation.instance.initRawContainer(key, url, res);
|
|
149
|
-
new Function('return globalThis')()[key] = enhancedRemote;
|
|
150
|
-
done(enhancedRemote);
|
|
151
|
-
})
|
|
152
|
-
.catch(done);
|
|
153
|
-
};
|
|
154
|
-
if (__webpack_require__.f) {
|
|
155
|
-
const handle = (chunkId, promises) => {
|
|
156
|
-
let installedChunkData = installedChunks[chunkId];
|
|
157
|
-
if (installedChunkData !== 0) {
|
|
158
|
-
if (installedChunkData) {
|
|
159
|
-
promises.push(installedChunkData[2]);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
const matcher = __webpack_require__.federation.chunkMatcher
|
|
163
|
-
? __webpack_require__.federation.chunkMatcher(chunkId)
|
|
164
|
-
: true;
|
|
165
|
-
if (matcher) {
|
|
166
|
-
const promise = new Promise((resolve, reject) => {
|
|
167
|
-
installedChunkData = installedChunks[chunkId] = [
|
|
168
|
-
resolve,
|
|
169
|
-
reject,
|
|
170
|
-
];
|
|
171
|
-
const fs = typeof process !== 'undefined'
|
|
172
|
-
? __non_webpack_require__('fs')
|
|
173
|
-
: false;
|
|
174
|
-
const filename = typeof process !== 'undefined'
|
|
175
|
-
? resolveFile(__webpack_require__.federation.rootOutputDir || '', chunkId)
|
|
176
|
-
: false;
|
|
177
|
-
if (fs && fs.existsSync(filename)) {
|
|
178
|
-
loadChunk('filesystem', chunkId, __webpack_require__.federation.rootOutputDir || '', (err, chunk) => {
|
|
179
|
-
if (err)
|
|
180
|
-
return reject(err);
|
|
181
|
-
if (chunk)
|
|
182
|
-
installChunk(chunk);
|
|
183
|
-
resolve(chunk);
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
const chunkName = __webpack_require__.u(chunkId);
|
|
188
|
-
const loadingStrategy = typeof process === 'undefined'
|
|
189
|
-
? 'http-eval'
|
|
190
|
-
: 'http-vm';
|
|
191
|
-
loadChunk(loadingStrategy, chunkName, __webpack_require__.federation.initOptions.name, (err, chunk) => {
|
|
192
|
-
if (err)
|
|
193
|
-
return reject(err);
|
|
194
|
-
if (chunk)
|
|
195
|
-
installChunk(chunk);
|
|
196
|
-
resolve(chunk);
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
promises.push((installedChunkData[2] = promise));
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
installedChunks[chunkId] = 0;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
if (__webpack_require__.f.require) {
|
|
209
|
-
console.warn('\x1b[33m%s\x1b[0m', 'CAUTION: build target is not set to "async-node", attempting to patch additional chunk handlers. This may not work');
|
|
210
|
-
__webpack_require__.f.require = handle;
|
|
211
|
-
}
|
|
212
|
-
if (__webpack_require__.f.readFileVm) {
|
|
213
|
-
__webpack_require__.f.readFileVm = handle;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
253
|
+
// Set up webpack script loader
|
|
254
|
+
(0, exports.setupScriptLoader)();
|
|
255
|
+
// Create and set up the chunk handler
|
|
256
|
+
const handle = (0, exports.setupChunkHandler)(installedChunks, args);
|
|
257
|
+
// Patch webpack require
|
|
258
|
+
(0, exports.setupWebpackRequirePatching)(handle);
|
|
216
259
|
})();
|
|
217
260
|
return args;
|
|
218
261
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimePlugin.js","sourceRoot":"","sources":["../../src/runtimePlugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimePlugin.js","sourceRoot":"","sources":["../../src/runtimePlugin.ts"],"names":[],"mappings":";;;AAyCA,4CAWC;AA0SD,4BAsBC;AA3UD,SAAgB,gBAAgB,CAAI,IAAY;IAC9C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,YAAY,GAAG,IAAI,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACjE,OAAO,YAAY,CAAC,IAAI,CAAC;SACtB,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,OAAY,CAAC;SACpC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;QACpB,OAAO,CAAC,KAAK,CAAC,0BAA0B,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC;QACxD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACP,CAAC;AAED,4DAA4D;AACrD,MAAM,WAAW,GAAG,CAAC,aAAqB,EAAE,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zC,CAAC;QAED,IAAI,mBAAmB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;YACrC,mBAAmB,CAAC,CAAC,CAAC,UAAU,GAAG,MAAM,CAAC;QAC5C,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,2BAA2B,+BAgBtC;AAEF;IACE,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,UAAU,CAAC,IAAI;YACb,uCAAuC;YACvC,CAAC,GAAG,EAAE;gBACJ,mCAAmC;gBACnC,MAAM,eAAe,GAA2B,EAAE,CAAC;gBAEnD,+BAA+B;gBAC/B,IAAA,yBAAiB,GAAE,CAAC;gBAEpB,sCAAsC;gBACtC,MAAM,MAAM,GAAG,IAAA,yBAAiB,EAAC,eAAe,EAAE,IAAI,CAAC,CAAC;gBAExD,wBAAwB;gBACxB,IAAA,mCAA2B,EAAC,MAAM,CAAC,CAAC;YACtC,CAAC,CAAC,EAAE,CAAC;YAEL,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.33",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"btoa": "1.2.1",
|
|
68
68
|
"encoding": "^0.1.13",
|
|
69
69
|
"node-fetch": "2.7.0",
|
|
70
|
-
"@module-federation/enhanced": "0.11.
|
|
71
|
-
"@module-federation/sdk": "0.11.
|
|
72
|
-
"@module-federation/utilities": "3.1.
|
|
73
|
-
"@module-federation/runtime": "0.11.
|
|
70
|
+
"@module-federation/enhanced": "0.11.4",
|
|
71
|
+
"@module-federation/sdk": "0.11.4",
|
|
72
|
+
"@module-federation/utilities": "3.1.51",
|
|
73
|
+
"@module-federation/runtime": "0.11.4"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^16||^17||^18||^19",
|