@module-federation/nextjs-mf 7.0.8 → 8.0.1-0

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +545 -411
  2. package/README.md +29 -15
  3. package/client/MFClient.js +1 -2
  4. package/client/MFClient.js.map +1 -1
  5. package/client/RemoteContainer.js +2 -1
  6. package/client/RemoteContainer.js.map +1 -1
  7. package/client/RemotePages.js +2 -1
  8. package/client/RemotePages.js.map +1 -1
  9. package/client/UrlNode.js +2 -10
  10. package/client/UrlNode.js.map +1 -1
  11. package/node.d.ts +1 -1
  12. package/node.js.map +1 -1
  13. package/package.json +7 -5
  14. package/src/default-delegate.js +64 -9
  15. package/src/default-delegate.js.map +1 -1
  16. package/src/federation-noop.js +13 -1
  17. package/src/federation-noop.js.map +1 -1
  18. package/src/index.d.ts +1 -1
  19. package/src/internal.d.ts +18 -12
  20. package/src/internal.js +83 -71
  21. package/src/internal.js.map +1 -1
  22. package/src/loaders/delegateLoader.d.ts +5 -2
  23. package/src/loaders/delegateLoader.js +19 -9
  24. package/src/loaders/delegateLoader.js.map +1 -1
  25. package/src/loaders/fixImageLoader.d.ts +12 -11
  26. package/src/loaders/fixImageLoader.js +17 -13
  27. package/src/loaders/fixImageLoader.js.map +1 -1
  28. package/src/loaders/fixUrlLoader.d.ts +7 -7
  29. package/src/loaders/fixUrlLoader.js +11 -11
  30. package/src/loaders/fixUrlLoader.js.map +1 -1
  31. package/src/loaders/helpers.d.ts +10 -3
  32. package/src/loaders/helpers.js +22 -13
  33. package/src/loaders/helpers.js.map +1 -1
  34. package/src/loaders/inject-hoist.d.ts +11 -0
  35. package/src/loaders/inject-hoist.js +7 -0
  36. package/src/loaders/inject-hoist.js.map +1 -1
  37. package/src/loaders/nextPageMapLoader.d.ts +12 -3
  38. package/src/loaders/nextPageMapLoader.js +45 -29
  39. package/src/loaders/nextPageMapLoader.js.map +1 -1
  40. package/src/loaders/patchDefaultSharedLoader.d.ts +9 -0
  41. package/src/loaders/patchDefaultSharedLoader.js +11 -0
  42. package/src/loaders/patchDefaultSharedLoader.js.map +1 -1
  43. package/src/loaders/patchNextClientPageLoader.d.ts +4 -2
  44. package/src/loaders/patchNextClientPageLoader.js +36 -18
  45. package/src/loaders/patchNextClientPageLoader.js.map +1 -1
  46. package/src/plugins/CopyFederationPlugin.d.ts +13 -0
  47. package/src/plugins/CopyFederationPlugin.js +40 -19
  48. package/src/plugins/CopyFederationPlugin.js.map +1 -1
  49. package/src/plugins/NextFederationPlugin/apply-client-plugins.d.ts +2 -3
  50. package/src/plugins/NextFederationPlugin/apply-client-plugins.js +9 -6
  51. package/src/plugins/NextFederationPlugin/apply-client-plugins.js.map +1 -1
  52. package/src/plugins/NextFederationPlugin/apply-server-plugins.d.ts +17 -10
  53. package/src/plugins/NextFederationPlugin/apply-server-plugins.js +35 -27
  54. package/src/plugins/NextFederationPlugin/apply-server-plugins.js.map +1 -1
  55. package/src/plugins/NextFederationPlugin/index.d.ts +18 -6
  56. package/src/plugins/NextFederationPlugin/index.js +108 -75
  57. package/src/plugins/NextFederationPlugin/index.js.map +1 -1
  58. package/src/plugins/NextFederationPlugin/next-fragments.d.ts +23 -17
  59. package/src/plugins/NextFederationPlugin/next-fragments.js +26 -18
  60. package/src/plugins/NextFederationPlugin/next-fragments.js.map +1 -1
  61. package/src/plugins/NextFederationPlugin/regex-equal.d.ts +8 -8
  62. package/src/plugins/NextFederationPlugin/regex-equal.js +7 -7
  63. package/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.d.ts +7 -0
  64. package/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js +20 -9
  65. package/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js.map +1 -1
  66. package/src/plugins/NextFederationPlugin/set-options.d.ts +6 -6
  67. package/src/plugins/NextFederationPlugin/set-options.js +10 -6
  68. package/src/plugins/NextFederationPlugin/set-options.js.map +1 -1
  69. package/src/plugins/NextFederationPlugin/validate-options.d.ts +13 -14
  70. package/src/plugins/NextFederationPlugin/validate-options.js +15 -15
  71. package/src/plugins/NextFederationPlugin/validate-options.js.map +1 -1
  72. package/src/plugins/container/EmbeddedContainerPlugin.d.ts +40 -0
  73. package/src/plugins/container/EmbeddedContainerPlugin.js +73 -0
  74. package/src/plugins/container/EmbeddedContainerPlugin.js.map +1 -0
  75. package/src/plugins/container/InvertedContainerPlugin.d.ts +21 -14
  76. package/src/plugins/container/InvertedContainerPlugin.js +21 -148
  77. package/src/plugins/container/InvertedContainerPlugin.js.map +1 -1
  78. package/src/plugins/container/InvertedContainerRuntimeModule.d.ts +3 -33
  79. package/src/plugins/container/InvertedContainerRuntimeModule.js +64 -518
  80. package/src/plugins/container/InvertedContainerRuntimeModule.js.map +1 -1
  81. package/src/plugins/container/ModuleFederationPlugin.d.ts +17 -0
  82. package/src/plugins/container/ModuleFederationPlugin.js +97 -0
  83. package/src/plugins/container/ModuleFederationPlugin.js.map +1 -0
  84. package/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.d.ts +28 -6
  85. package/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js +34 -57
  86. package/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js.map +1 -1
  87. package/src/plugins/container/types.d.ts +1 -1
  88. package/src/types.d.ts +3 -0
  89. package/utilities.js.map +1 -1
  90. package/utils/Template.d.ts +1 -1
  91. package/utils/Template.js +23 -15
  92. package/utils/Template.js.map +1 -1
  93. package/utils/build-utils.d.ts +9 -0
  94. package/utils/build-utils.js +9 -0
  95. package/utils/build-utils.js.map +1 -1
  96. package/utils/flushedChunks.d.ts +15 -0
  97. package/utils/flushedChunks.js +8 -0
  98. package/utils/flushedChunks.js.map +1 -1
  99. package/utils/index.d.ts +27 -3
  100. package/utils/index.js +45 -1
  101. package/utils/index.js.map +1 -1
  102. package/src/plugins/JsonpChunkLoading.d.ts +0 -7
  103. package/src/plugins/JsonpChunkLoading.js +0 -43
  104. package/src/plugins/JsonpChunkLoading.js.map +0 -1
  105. package/src/plugins/container/custom-jsonp.d.ts +0 -2
  106. package/src/plugins/container/custom-jsonp.js +0 -90
  107. package/src/plugins/container/custom-jsonp.js.map +0 -1
@@ -1,538 +1,84 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- /*
3
- MIT License http://www.opensource.org/licenses/mit-license.php
4
- */
5
- 'use strict';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
6
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const RuntimeModule_1 = __importDefault(require("webpack/lib/RuntimeModule"));
7
7
  const webpack_1 = require("webpack");
8
- const semver_1 = require("webpack/lib/util/semver");
9
- /**
10
- * InvertedContainerRuntimeModule is a Webpack runtime module that generates
11
- * the runtime code needed for loading federated modules in an inverted container.
12
- */
13
- class InvertedContainerRuntimeModule extends webpack_1.RuntimeModule {
14
- /**
15
- * Constructor for the InvertedContainerRuntimeModule.
16
- * @param {Set<string>} runtimeRequirements - A set of runtime requirement strings.
17
- * @param {InvertedContainerRuntimeModuleOptions} options - Runtime module options.
18
- * @param {ChunkLoadingContext} chunkLoadingContext - Chunk loading context.
19
- */
20
- constructor(runtimeRequirements, options, chunkLoadingContext) {
21
- super('inverted container startup', webpack_1.RuntimeModule.STAGE_ATTACH);
22
- this.runtimeRequirements = runtimeRequirements;
8
+ class InvertedContainerRuntimeModule extends RuntimeModule_1.default {
9
+ constructor(options) {
10
+ super('inverted container startup', RuntimeModule_1.default.STAGE_BASIC);
23
11
  this.options = options;
24
- this.chunkLoadingContext = chunkLoadingContext;
25
12
  }
26
13
  resolveContainerModule() {
14
+ if (!this.compilation) {
15
+ return;
16
+ }
27
17
  const container = this.compilation.entrypoints
28
18
  .get(this.options.container)
29
- ?.getRuntimeChunk?.();
30
- if (!container)
19
+ ?.getRuntimeChunk();
20
+ if (!container) {
31
21
  return;
32
- const entryModules = this.compilation.chunkGraph.getChunkEntryModulesIterable(container);
33
- let entryModule;
34
- for (const module of entryModules) {
35
- entryModule = module;
36
- break;
37
22
  }
38
- return entryModule;
23
+ const entryModules = this.compilation.chunkGraph.getChunkEntryModulesIterable(container);
24
+ return Array.from(entryModules)[0];
39
25
  }
40
- mapShared() {
41
- const { runtimeTemplate, chunkGraph, codeGenerationResults, entrypoints, compiler, } = this.compilation;
42
- const { RuntimeGlobals, Template } = compiler.webpack;
43
- const chunkToModuleMapping = {};
44
- /** @type {Map<string | number, Source>} */
45
- const moduleIdToSourceMapping = new Map();
46
- const moduleIdToSourceChunkID = new Map();
47
- // @ts-ignore
48
- const initialConsumes = [];
49
- /**
50
- *
51
- * @param {Iterable<Module>} modules modules
52
- * @param {Chunk} chunk the chunk
53
- * @param {(string | number)[]} list list of ids
54
- */
55
- //@ts-ignore
56
- const addShared = (modules, chunk, list) => {
57
- for (const m of modules) {
58
- const module = /** @type {ConsumeSharedModule} */ m;
59
- const id = chunkGraph.getModuleId(module);
60
- list.push(id);
61
- moduleIdToSourceMapping.set(id, codeGenerationResults.getSource(module, chunk.runtime, 'consume-shared'));
62
- }
63
- };
64
- // @ts-ignore
65
- const addModules = (modules, chunk, list) => {
66
- for (const m of modules) {
67
- const module = /** @type {ConsumeSharedModule} */ m;
68
- const id = chunkGraph.getModuleId(module);
69
- list.push(id);
70
- const moduleOrigin = module.options.importResolved;
71
- const filter = chunkGraph.getChunkModuleIdMap(chunk, (module) => {
72
- // @ts-ignore
73
- return module?.resource === moduleOrigin;
74
- }, true);
75
- moduleIdToSourceChunkID.set(id, filter);
76
- }
77
- };
78
- for (const entrypointModule of entrypoints.values()) {
79
- const entrypoint = entrypointModule.getEntrypointChunk();
80
- if (entrypoint.hasRuntime())
81
- continue;
82
- // for (const entryChunks of entrypoint.getAllInitialChunks()) {}
83
- // @ts-ignore
84
- for (const chunk of entrypoint.getAllAsyncChunks()) {
85
- //if(chunk.hasEntryModule()) continue
86
- const modules = chunkGraph.getChunkModulesIterableBySourceType(chunk, 'consume-shared');
87
- if (!modules)
88
- continue;
89
- //@ts-ignore
90
- // addModules(modules, chunk, (chunkToModuleMapping[chunk.id] = []));
91
- }
92
- // @ts-ignore
93
- for (const chunk of entrypoint.getAllInitialChunks()) {
94
- // if(chunk.hasEntryModule()) continue
95
- const modules = chunkGraph.getChunkModulesIterableBySourceType(chunk, 'consume-shared');
96
- if (!modules)
97
- continue;
98
- // @ts-ignore
99
- addModules(modules, chunk, (chunkToModuleMapping[chunk.id] = []));
100
- //@ts-ignore
101
- addShared(modules, chunk, initialConsumes);
102
- }
26
+ generate() {
27
+ if (!this.compilation || !this.chunk || !this.chunkGraph) {
28
+ return '';
103
29
  }
104
- if (moduleIdToSourceMapping.size === 0 ||
105
- moduleIdToSourceChunkID.size === 0) {
30
+ const { name, debug } = this.options;
31
+ const containerEntryModule = this.resolveContainerModule();
32
+ const containerName = containerEntryModule?._name || name;
33
+ const chunk = this.chunk;
34
+ const containerModuleId = containerEntryModule?.id || containerEntryModule?.debugId;
35
+ // const hasEnsurechunkHandlers = !this.compilation.runtimeRequirements.has(RuntimeGlobals.ensureChunkHandlers)) {
36
+ const isPartialContainer = chunk.runtime === this.options.runtime;
37
+ if (!(containerName && containerModuleId) || !isPartialContainer) {
106
38
  return '';
107
39
  }
108
- return Template.asString([
109
- (0, semver_1.parseVersionRuntimeCode)(runtimeTemplate),
110
- (0, semver_1.versionLtRuntimeCode)(runtimeTemplate),
111
- (0, semver_1.rangeToStringRuntimeCode)(runtimeTemplate),
112
- (0, semver_1.satisfyRuntimeCode)(runtimeTemplate),
113
- `var ensureExistence = ${runtimeTemplate.basicFunction('scopeName, key', [
114
- `var scope = ${RuntimeGlobals.shareScopeMap}[scopeName];`,
115
- `if(!scope || !${RuntimeGlobals.hasOwnProperty}(scope, key)) throw new Error("Shared module " + key + " doesn't exist in shared scope " + scopeName);`,
116
- 'return scope;',
117
- ])};`,
118
- `var findVersion = ${runtimeTemplate.basicFunction('scope, key', [
119
- 'var versions = scope[key];',
120
- `var key = Object.keys(versions).reduce(${runtimeTemplate.basicFunction('a, b', ['return !a || versionLt(a, b) ? b : a;'])}, 0);`,
121
- 'return key && versions[key]',
122
- ])};`,
123
- `var findSingletonVersionKey = ${runtimeTemplate.basicFunction('scope, key', [
124
- 'var versions = scope[key];',
125
- `return Object.keys(versions).reduce(${runtimeTemplate.basicFunction('a, b', ['return !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;'])}, 0);`,
126
- ])};`,
127
- `var getInvalidSingletonVersionMessage = ${runtimeTemplate.basicFunction('scope, key, version, requiredVersion', [
128
- `return "Unsatisfied version " + version + " from " + (version && scope[key][version].from) + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"`,
129
- ])};`,
130
- `var getSingleton = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
131
- 'var version = findSingletonVersionKey(scope, key);',
132
- 'return get(scope[key][version]);',
133
- ])};`,
134
- `var getSingletonVersion = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
135
- 'var version = findSingletonVersionKey(scope, key);',
136
- 'if (!satisfy(requiredVersion, version)) ' +
137
- 'typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));',
138
- 'return get(scope[key][version]);',
139
- ])};`,
140
- `var getStrictSingletonVersion = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
141
- 'var version = findSingletonVersionKey(scope, key);',
142
- 'if (!satisfy(requiredVersion, version)) ' +
143
- 'throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));',
144
- 'return get(scope[key][version]);',
145
- ])};`,
146
- `var findValidVersion = ${runtimeTemplate.basicFunction('scope, key, requiredVersion', [
147
- 'var versions = scope[key];',
148
- `var key = Object.keys(versions).reduce(${runtimeTemplate.basicFunction('a, b', [
149
- 'if (!satisfy(requiredVersion, b)) return a;',
150
- 'return !a || versionLt(a, b) ? b : a;',
151
- ])}, 0);`,
152
- 'return key && versions[key]',
153
- ])};`,
154
- `var getInvalidVersionMessage = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
155
- 'var versions = scope[key];',
156
- 'return "No satisfying version (" + rangeToString(requiredVersion) + ") of shared module " + key + " found in shared scope " + scopeName + ".\\n" +',
157
- `"Available versions: " + Object.keys(versions).map(${runtimeTemplate.basicFunction('key', ['return key + " from " + versions[key].from;'])}).join(", ");`,
158
- ])};`,
159
- `var getValidVersion = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
160
- 'var entry = findValidVersion(scope, key, requiredVersion);',
161
- 'if(entry) return get(entry);',
162
- 'throw new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));',
163
- ])};`,
164
- `var warnInvalidVersion = ${runtimeTemplate.basicFunction('scope, scopeName, key, requiredVersion', [
165
- 'typeof console !== "undefined" && console.warn && console.warn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));',
166
- ])};`,
167
- `var get = ${runtimeTemplate.basicFunction('entry', [
168
- 'entry.loaded = 1;',
169
- 'return entry.get()',
170
- ])};`,
171
- `var init = ${runtimeTemplate.returningFunction(Template.asString([
172
- 'function(scopeName, a, b, c) {',
173
- Template.indent([
174
- `var promise = ${RuntimeGlobals.initializeSharing}(scopeName);`,
175
- `if (promise && promise.then) return promise.then(fn.bind(fn, scopeName, ${RuntimeGlobals.shareScopeMap}[scopeName], a, b, c));`,
176
- `return fn(scopeName, ${RuntimeGlobals.shareScopeMap}[scopeName], a, b, c);`,
177
- ]),
178
- '}',
179
- ]), 'fn')};`,
180
- '',
181
- `var load = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key', [
182
- 'ensureExistence(scopeName, key);',
183
- 'return get(findVersion(scope, key));',
184
- ])});`,
185
- `var loadFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, fallback', [
186
- `return scope && ${RuntimeGlobals.hasOwnProperty}(scope, key) ? get(findVersion(scope, key)) : fallback();`,
187
- ])});`,
188
- `var loadVersionCheck = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version', [
189
- 'ensureExistence(scopeName, key);',
190
- 'return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));',
191
- ])});`,
192
- `var loadSingleton = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key', [
193
- 'ensureExistence(scopeName, key);',
194
- 'return getSingleton(scope, scopeName, key);',
195
- ])});`,
196
- `var loadSingletonVersionCheck = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version', [
197
- 'ensureExistence(scopeName, key);',
198
- 'return getSingletonVersion(scope, scopeName, key, version);',
199
- ])});`,
200
- `var loadStrictVersionCheck = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version', [
201
- 'ensureExistence(scopeName, key);',
202
- 'return getValidVersion(scope, scopeName, key, version);',
203
- ])});`,
204
- `var loadStrictSingletonVersionCheck = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version', [
205
- 'ensureExistence(scopeName, key);',
206
- 'return getStrictSingletonVersion(scope, scopeName, key, version);',
207
- ])});`,
208
- `var loadVersionCheckFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version, fallback', [
209
- `if(!scope || !${RuntimeGlobals.hasOwnProperty}(scope, key)) return fallback();`,
210
- 'return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));',
211
- ])});`,
212
- `var loadSingletonFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, fallback', [
213
- `if(!scope || !${RuntimeGlobals.hasOwnProperty}(scope, key)) return fallback();`,
214
- 'return getSingleton(scope, scopeName, key);',
215
- ])});`,
216
- `var loadSingletonVersionCheckFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version, fallback', [
217
- `if(!scope || !${RuntimeGlobals.hasOwnProperty}(scope, key)) return fallback();`,
218
- 'return getSingletonVersion(scope, scopeName, key, version);',
219
- ])});`,
220
- `var loadStrictVersionCheckFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version, fallback', [
221
- `var entry = scope && ${RuntimeGlobals.hasOwnProperty}(scope, key) && findValidVersion(scope, key, version);`,
222
- `return entry ? get(entry) : fallback();`,
223
- ])});`,
224
- `var loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init(${runtimeTemplate.basicFunction('scopeName, scope, key, version, fallback', [
225
- `if(!scope || !${RuntimeGlobals.hasOwnProperty}(scope, key)) return fallback();`,
226
- 'return getStrictSingletonVersion(scope, scopeName, key, version);',
227
- ])});`,
228
- 'var installedModules = __webpack_require__.installedModules',
229
- 'var moduleToHandlerMapping = {',
230
- Template.indent(Array.from(moduleIdToSourceMapping, ([key, source]) => `${JSON.stringify(key)}: ${source.source()}`).join(',\n')),
231
- '};',
232
- 'var listOfInitialIds = {',
233
- Template.indent(Array.from(moduleIdToSourceChunkID, ([key, chunkIds]) => {
234
- return `${JSON.stringify(key)}: ${JSON.stringify(Object.keys(chunkIds))}`;
235
- }).join(',\n')),
236
- '};',
237
- initialConsumes.length > 0
238
- ? Template.asString([
239
- //@ts-ignore
240
- `var initialConsumes = ${JSON.stringify(
241
- //@ts-ignore
242
- Array.from(new Set(initialConsumes)))};`,
243
- // `initialConsumes.forEach(${runtimeTemplate.basicFunction('id', [
244
- // `${
245
- // RuntimeGlobals.moduleFactories
246
- // }[id] = ${runtimeTemplate.basicFunction('module', [
247
- // '// Handle case when module is used sync',
248
- // 'installedModules[id] = 0;',
249
- // `delete ${RuntimeGlobals.moduleCache}[id];`,
250
- // 'var factory = moduleToHandlerMapping[id]();',
251
- // 'if(typeof factory !== "function") throw new Error("Shared module is not available for eager consumption: " + id);',
252
- // `module.exports = factory();`,
253
- // ])}`,
254
- // ])});`,
255
- ])
256
- : '// no consumes in initial chunks',
257
- // this._runtimeRequirements.has(RuntimeGlobals.ensureChunkHandlers)
258
- Template.asString([
259
- `var chunkMapping = ${JSON.stringify(chunkToModuleMapping, null, '')};`,
260
- `__webpack_require__.getEagerSharedForChunkId = ${runtimeTemplate.basicFunction('chunkId, promises', [
261
- `if(${RuntimeGlobals.hasOwnProperty}(chunkMapping, chunkId)) {`,
262
- Template.indent([
263
- `chunkMapping[chunkId].forEach(${runtimeTemplate.basicFunction('id', [
264
- `if(${RuntimeGlobals.hasOwnProperty}(installedModules, id)) return promises.push(installedModules[id]);`,
265
- `if(typeof ${RuntimeGlobals.moduleCache}[id] === 'object') {
266
- ${RuntimeGlobals.moduleCache}[id].hot.removeDisposeHandler()
267
- ${RuntimeGlobals.moduleCache}[id].hot.addDisposeHandler(function (args){
268
-
269
- delete ${RuntimeGlobals.moduleCache}[id]
270
-
271
-
272
- ${RuntimeGlobals.moduleFactories}[id] = function(module) {
273
- return module.exports = globalThis.factoryTracker[id]
274
- }
275
- })
276
-
277
- }`,
278
- `var onFactory = ${runtimeTemplate.basicFunction('factory', [
279
- 'installedModules[id] = 0;',
280
- `${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction('module', [
281
- `delete ${RuntimeGlobals.moduleCache}[id];`,
282
- 'globalThis.factoryTracker[id] = module.exports = factory();',
283
- ])}`,
284
- ])};`,
285
- `var onError = ${runtimeTemplate.basicFunction('error', [
286
- 'delete installedModules[id];',
287
- this.options.debug
288
- ? "console.error('on error',id, error)"
289
- : '',
290
- `${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction('module', [
291
- `delete ${RuntimeGlobals.moduleCache}[id];`,
292
- 'throw error;',
293
- ])}`,
294
- ])};`,
295
- 'try {',
296
- Template.indent([
297
- 'var promise = moduleToHandlerMapping[id]();',
298
- 'if(promise.then) {',
299
- Template.indent("promises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));"),
300
- '} else onFactory(promise);',
301
- ]),
302
- '} catch(e) { onError(e); }',
303
- ])});`,
304
- ]),
305
- '}',
306
- ])}`,
307
- ]),
308
- ]);
309
- }
310
- //@ts-ignore
311
- mapChunks() {
312
- // @ts-ignore
313
- const { chunkGraph, compilation } = this;
314
- const { runtimeTemplate, moduleGraph, entrypoints, compiler } = compilation;
315
- const { RuntimeGlobals, Template } = compiler.webpack;
316
- const chunkToRemotesMapping = {};
317
- const idToExternalAndNameMapping = {};
318
- //@ts-ignore
319
- for (const entrypointModule of entrypoints.values()) {
320
- const entrypoint = entrypointModule.getEntrypointChunk();
321
- if (entrypoint.hasRuntime())
322
- continue;
323
- for (const chunk of entrypoint.getAllInitialChunks()) {
324
- const modules = chunkGraph.getChunkModulesIterableBySourceType(chunk, 'remote');
325
- if (!modules)
326
- continue;
327
- const remotes = (chunkToRemotesMapping[chunk.id || chunk.name] = []);
328
- //@ts-ignore
329
- for (const m of modules) {
330
- const module = m;
331
- //@ts-ignore
332
- const name = module.internalRequest;
333
- const id = chunkGraph.getModuleId(module);
334
- //@ts-ignore
335
- const shareScope = module.shareScope;
336
- const dep = module.dependencies[0];
337
- const externalModule = moduleGraph.getModule(dep);
338
- const externalModuleId = externalModule && chunkGraph.getModuleId(externalModule);
339
- remotes.push(id);
340
- //@ts-ignore
341
- idToExternalAndNameMapping[id] = [shareScope, name, externalModuleId];
342
- }
343
- }
40
+ const globalObject = `globalThis.__remote_scope__`;
41
+ const containerScope = `${webpack_1.RuntimeGlobals.global}`;
42
+ return `
43
+ function attachRemote (resolve) {
44
+ var innerRemote = __webpack_require__(${JSON.stringify(containerModuleId)});
45
+ if(${globalObject} && !${globalObject}[${JSON.stringify(name)}]) {
46
+ ${globalObject}[${JSON.stringify(name)}] = innerRemote;
47
+ } else if(${containerScope} && !${containerScope}[${JSON.stringify(name)}]) {
48
+ ${containerScope}[${JSON.stringify(name)}] = innerRemote;
344
49
  }
345
- return Template.asString([
346
- `var remoteMapping = ${JSON.stringify(chunkToRemotesMapping, null, '')};`,
347
- `var idToExternalAndNameMapping = ${JSON.stringify(idToExternalAndNameMapping, null, '')};`,
348
- 'globalThis.factoryTracker = globalThis.factoryTracker || {}',
349
- `__webpack_require__.getEagerRemotesForChunkId = ${runtimeTemplate.basicFunction('chunkId, promises', [
350
- `
351
- if(${RuntimeGlobals.hasOwnProperty}(remoteMapping, chunkId)) {`,
352
- Template.indent([
353
- `remoteMapping[chunkId].forEach(${runtimeTemplate.basicFunction('id', [
354
- `if(typeof ${RuntimeGlobals.moduleCache}[id] === 'object') {
355
- ${RuntimeGlobals.moduleCache}[id].hot.removeDisposeHandler()
356
- ${RuntimeGlobals.moduleCache}[id].hot.addDisposeHandler(function (args){
357
-
358
- ${RuntimeGlobals.moduleCache}[id] = globalThis.factoryTracker[id];
359
- ${RuntimeGlobals.moduleFactories}[id] = function(module) {
360
- return module.exports = globalThis.factoryTracker[id]
50
+ __webpack_require__.S.default = new Proxy({}, {
51
+ get: function(target, property) {
52
+ if(typeof target[property] === 'object' && target[property] !== null) {
53
+ for(const key in target[property]) {
54
+ if(property.startsWith('next/') || property.startsWith('react') || property.startsWith('next-dom')) {
55
+ target[property][key].loaded = true
361
56
  }
362
- })
363
-
364
- }`,
365
- `var getScope = ${RuntimeGlobals.currentRemoteGetScope};`,
366
- 'if(!getScope) getScope = [];',
367
- 'var data = idToExternalAndNameMapping[id];',
368
- 'if(getScope.indexOf(data) >= 0) return;',
369
- 'getScope.push(data);',
370
- `if(data.p) return promises.push(data.p);`,
371
- `var onError = ${runtimeTemplate.basicFunction('error', [
372
- 'if(!error) error = new Error("Container missing");',
373
- 'if(typeof error.message === "string")',
374
- Template.indent(`error.message += '\\nwhile loading "' + data[1] + '" from ' + data[2];`),
375
- `${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction('', [
376
- 'throw error;',
377
- ])}`,
378
- 'data.p = 0;',
379
- ])};`,
380
- `var handleFunction = ${runtimeTemplate.basicFunction('fn, arg1, arg2, d, next, first', [
381
- 'try {',
382
- Template.indent([
383
- 'var promise = fn(arg1, arg2);',
384
- 'if(promise && promise.then) {',
385
- Template.indent([
386
- `var p = promise.then(${runtimeTemplate.returningFunction('next(result, d)', 'result')}, onError);`,
387
- `if(first) promises.push(data.p = p); else return p;`,
388
- ]),
389
- '} else {',
390
- Template.indent(['return next(promise, d, first);']),
391
- '}',
392
- ]),
393
- '} catch(error) {',
394
- Template.indent(['onError(error);']),
395
- '}',
396
- ])}`,
397
- `var onExternal = ${runtimeTemplate.basicFunction(['external', '_', 'first'], `
398
- return external ? handleFunction(${RuntimeGlobals.initializeSharing}, data[0], 0, external, onInitialized, first) : onError()`)};`,
399
- `var onInitialized = ${runtimeTemplate.returningFunction(`handleFunction(external.get, data[1], getScope, 0, onFactory, first)`, '_, external, first')};`,
400
- `var onFactory = ${runtimeTemplate.basicFunction('factory', [
401
- 'data.p = 1;',
402
- `${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction('module', [
403
- 'globalThis.factoryTracker[id] = module.exports = (globalThis.factoryTracker[id] || factory());',
404
- ])}`,
405
- ])};`,
406
- 'handleFunction(__webpack_require__, data[2], 0, 0, onExternal, 1);',
407
- ])});`,
408
- ]),
409
- '}',
410
- ])}`,
411
- ]);
412
- }
413
- /**
414
- * Generate method for the runtime module, producing the runtime code.
415
- * @returns {string} runtime code
416
- */
417
- generate() {
418
- const { name } = this.options;
419
- const { chunkGraph, compilation, chunk } = this;
420
- const { runtimeTemplate, moduleGraph, entrypoints, compiler } = compilation;
421
- const { RuntimeGlobals, Template, javascript } = compiler.webpack || {};
422
- const chunkHasJs = (javascript && javascript.JavascriptModulesPlugin.chunkHasJs) ||
423
- require('webpack/lib/javascript/JavascriptModulesPlugin').chunkHasJs;
424
- const containerEntryModule = this.resolveContainerModule();
425
- //server runtime is always called webpack-runtime
426
- const isServer = chunk.name === 'webpack-runtime';
427
- const isApi = chunk.name === 'webpack-api-runtime';
428
- const conditionMap = chunkGraph.getChunkConditionMap(chunk, chunkHasJs);
429
- // const hasJsMatcher = compileBooleanMatcher(conditionMap);
430
- // find the main webpack runtime, skip all other chunks
431
- if (chunk.name !== 'webpack-runtime' && chunk.name !== 'webpack') {
432
- return Template.asString('');
433
- }
434
- const containerEntry = [containerEntryModule].map((module) => {
435
- //@ts-ignore
436
- const containerName = module?._name || name;
437
- const containerModuleId = module?.id || module?.debugId;
438
- if (!(containerName && containerName)) {
439
- return '';
57
+ }
440
58
  }
441
- // const globalRef = this.compilation.options.output?.globalObject;
442
- //@ts-ignore
443
- const nodeGlobal = this.compilation.options?.node?.global;
444
- const globalObject = nodeGlobal
445
- ? RuntimeGlobals.global || 'global'
446
- : 'global';
447
- const containerScope = isServer || isApi
448
- ? [globalObject, "['__remote_scope__']"].join('')
449
- : 'window';
450
- const runtimeId = chunk.id;
451
- const serverContainerKickstart = Template.asString([
452
- '__webpack_require__.own_remote = new Promise(function(resolve,reject){',
453
- Template.indent([
454
- // attachOnMount,
455
- `__webpack_require__.O(0, [${JSON.stringify(runtimeId)}], function() {`,
456
- // attachOnMount,
457
- `if(!__webpack_require__.m[${JSON.stringify(containerModuleId)}]) {`,
458
- `console.error('container does not exist in host runtime graph', ${JSON.stringify(containerModuleId)});`,
459
- `} else { `,
460
- this.options.debug
461
- ? `console.debug('SHOULD ATTACH CONTAINER'); `
462
- : '',
463
- 'attachRemote(resolve)',
464
- `} `,
465
- '},0)',
466
- ]),
467
- '})',
468
- ]);
469
- const checkForAsyncChunkRequirements = Template.asString([
470
- `__webpack_require__.checkAsyncReqs = function() {`,
471
- Template.indent([
472
- `self[${JSON.stringify(this.compilation.outputOptions.chunkLoadingGlobal)}].forEach(function(chunkId) {`,
473
- Template.indent([
474
- `if(__webpack_require__.getEagerSharedForChunkId) {__webpack_require__.getEagerSharedForChunkId(chunkId[0],__webpack_require__.initConsumes)}`,
475
- `if(__webpack_require__.getEagerRemotesForChunkId) {__webpack_require__.getEagerRemotesForChunkId(chunkId[0],__webpack_require__.initRemotes)}`,
476
- ]),
477
- '});',
478
- ]),
479
- '}',
480
- ]);
481
- const browserContainerKickstart = Template.asString([
482
- '__webpack_require__.own_remote = new Promise(function(resolve,reject){',
483
- this.options.debug
484
- ? 'console.debug("O keys",Object.keys(__webpack_require__.O))'
485
- : '',
486
- `__webpack_require__.O(0, [${JSON.stringify(runtimeId)}], function() {`,
487
- this.options.debug
488
- ? "console.debug('runtime loaded, replaying all installed chunk requirements');"
489
- : '',
490
- '__webpack_require__.checkAsyncReqs();',
491
- 'attachRemote(resolve)',
492
- '},0)',
493
- '})',
494
- ]);
495
- // __webpack_require__.O(0, ["webpack-runtime"], function() {
496
- return Template.asString([
497
- 'globalThis.usedChunks = globalThis.usedChunks || new Set();',
498
- 'globalThis.backupScope = globalThis.backupScope || {};',
499
- '__webpack_require__.S = globalThis.backupScope;',
500
- '__webpack_require__.initConsumes = __webpack_require__.initConsumes || [];',
501
- '__webpack_require__.initRemotes = __webpack_require__.initRemotes || [];',
502
- '__webpack_require__.installedModules = {};',
503
- this.options.debug
504
- ? "console.debug('share scope', __webpack_require__.S);"
505
- : '',
506
- `if(${containerScope} === undefined) {`,
507
- this.options.debug
508
- ? `console.debug('container scope is empty, initializing');`
509
- : '',
510
- `${containerScope} = {_config: {}}
511
- };`,
512
- checkForAsyncChunkRequirements,
513
- Template.asString([
514
- 'function attachRemote (resolve) {',
515
- Template.indent([
516
- `const innerRemote = __webpack_require__(${JSON.stringify(containerModuleId)});`,
517
- `${containerScope}[${JSON.stringify(containerName)}] = innerRemote;`,
518
- "__webpack_require__.I('default',[globalThis.backupScope]);",
519
- this.options.debug
520
- ? "console.debug('remote attached', innerRemote);"
521
- : '',
522
- 'if(resolve) resolve(innerRemote)',
523
- ]),
524
- '}',
525
- ]),
526
- 'try {',
527
- isServer ? serverContainerKickstart : browserContainerKickstart,
528
- '} catch (e) {',
529
- "console.error('host runtime was unable to initialize its own remote', e);",
530
- '}',
531
- this.mapChunks(),
532
- this.mapShared(),
533
- ]);
59
+
60
+ return target[property];
61
+ },
62
+ set: function(target, property, value) {
63
+ if(!target[property]) {
64
+ target[property] = value;
65
+ }
66
+ return true;
67
+ }
534
68
  });
535
- return Template.asString(containerEntry);
69
+
70
+ if(resolve) resolve(innerRemote);
71
+ }
72
+ if(!(${globalObject} && ${globalObject}[${JSON.stringify(name)}]) && !(${containerScope} && ${containerScope}[${JSON.stringify(name)}])) {
73
+ if (__webpack_require__.O) {
74
+ __webpack_require__.O(0, ["${this.chunk.id}"], function() {
75
+ attachRemote();
76
+ }, 0);
77
+ } else {
78
+ attachRemote();
79
+ }
80
+ }
81
+ `;
536
82
  }
537
83
  }
538
84
  exports.default = InvertedContainerRuntimeModule;
@@ -1 +1 @@
1
- {"version":3,"file":"InvertedContainerRuntimeModule.js","sourceRoot":"","sources":["../../../../../../packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD;;EAEE;AAEF,YAAY,CAAC;;AAGb,qCAAwC;AACxC,oDAMiC;AAqBjC;;;GAGG;AACH,MAAM,8BAA+B,SAAQ,uBAAa;IAKxD;;;;;OAKG;IACH,YACE,mBAAgC,EAChC,OAA8C,EAC9C,mBAAwC;QAExC,KAAK,CAAC,4BAA4B,EAAE,uBAAa,CAAC,YAAY,CAAC,CAAC;QAChE,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAED,sBAAsB;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW;aAC3C,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,SAAmB,CAAC;YACtC,EAAE,eAAe,EAAE,EAAE,CAAC;QACxB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,YAAY,GAChB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;QAEtE,IAAI,WAAW,CAAC;QAChB,KAAK,MAAM,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AAQ,CAAC;gBACvB,6DAA6D;gBAC7D,wDAAwD;gBACxD,iDAAiD;gBACjD,4EAA4E;gBAC5E,0EAA0E;gBAC1E,4CAA4C;gBAC5C,IAAI,CAAC,OAAO,CAAC,KAAK;oBAChB,CAAC,CAAC,sDAAsD;oBACxD,CAAC,CAAC,EAAE;gBACN,MAAM,cAAc,mBAAmB;gBACvC,IAAI,CAAC,OAAO,CAAC,KAAK;oBAChB,CAAC,CAAC,0DAA0D;oBAC5D,CAAC,CAAC,EAAE;gBACN,GAAG,cAAc;WACd;gBACH,8BAA8B;gBAC9B,QAAQ,CAAC,QAAQ,CAAC;oBAChB,mCAAmC;oBACnC,QAAQ,CAAC,MAAM,CAAC;wBACd,2CAA2C,IAAI,CAAC,SAAS,CACvD,iBAAiB,CAClB,IAAI;wBACL,GAAG,cAAc,IAAI,IAAI,CAAC,SAAS,CACjC,aAAa,CACd,kBAAkB;wBACnB,4DAA4D;wBAC5D,IAAI,CAAC,OAAO,CAAC,KAAK;4BAChB,CAAC,CAAC,gDAAgD;4BAClD,CAAC,CAAC,EAAE;wBACN,kCAAkC;qBACnC,CAAC;oBACF,GAAG;iBACJ,CAAC;gBACF,OAAO;gBACP,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,yBAAyB;gBAC/D,eAAe;gBACf,2EAA2E;gBAC3E,GAAG;gBACH,IAAI,CAAC,SAAS,EAAE;gBAChB,IAAI,CAAC,SAAS,EAAE;aACjB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,kBAAe,8BAA8B,CAAC"}
1
+ {"version":3,"file":"InvertedContainerRuntimeModule.js","sourceRoot":"","sources":["../../../../../../packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts"],"names":[],"mappings":";;;;;AAEA,8EAAsD;AACtD,qCAAyC;AAUzC,MAAM,8BAA+B,SAAQ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