@module-federation/node 0.16.3-rc.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,220 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [1.0.0](https://github.com/module-federation/nextjs-mf/compare/node-0.16.2...node-1.0.0) (2023-07-01)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `utils` updated to version `2.0.0`
10
+ * `utils` updated to version `2.0.0`
11
+
12
+ ### Features
13
+
14
+ * Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
15
+
16
+
17
+ ### BREAKING CHANGES
18
+
19
+ * automaticAsyncBoundary option has been removed
20
+
21
+ * fix: exclude specific pages from page map automatically
22
+
23
+ * refactor: conslidate codebase
24
+
25
+ * fix: improve hot reload share recovery
26
+
27
+ * refactor: remove server jsonp template
28
+
29
+ * chore: remove dead code from runtime modules
30
+
31
+ * fix: clean up jsonp getCustomJsonpCode
32
+
33
+ getting chunk loading global from compiler output options
34
+
35
+ * feat: adding cleanInitArrays runtime helper
36
+
37
+ * chore: remove share scope hoist and module hoisting system
38
+
39
+ * chore: cleanup code
40
+
41
+ * chore: remove dead code from add module runtime plugin
42
+
43
+ likely can remove whole plugin in future
44
+
45
+ * chore: remove logs from delegate modules
46
+
47
+ * chore: remove old utils
48
+
49
+ * fix: add warning on auto page stitch
50
+
51
+ * fix: remove commented out code from InvertedContainerPlugin.ts
52
+
53
+ * chore: improve logging to see if its local load or remote load
54
+
55
+ * chore: clean up old custom promises factories
56
+
57
+ * fix: remove container proxy code
58
+
59
+ * fix: remove container proxy code
60
+ * automaticAsyncBoundary option has been removed
61
+
62
+ * fix: exclude specific pages from page map automatically
63
+
64
+ * refactor: conslidate codebase
65
+
66
+ * fix: improve hot reload share recovery
67
+
68
+ * refactor: remove server jsonp template
69
+
70
+ * chore: remove dead code from runtime modules
71
+
72
+ * fix: clean up jsonp getCustomJsonpCode
73
+
74
+ getting chunk loading global from compiler output options
75
+
76
+ * feat: adding cleanInitArrays runtime helper
77
+
78
+ * chore: remove share scope hoist and module hoisting system
79
+
80
+ * chore: cleanup code
81
+
82
+ * chore: remove dead code from add module runtime plugin
83
+
84
+ likely can remove whole plugin in future
85
+
86
+ * chore: remove logs from delegate modules
87
+
88
+ * chore: remove old utils
89
+
90
+ * fix: add warning on auto page stitch
91
+
92
+ * fix: remove commented out code from InvertedContainerPlugin.ts
93
+
94
+ * chore: improve logging to see if its local load or remote load
95
+
96
+ * chore: clean up old custom promises factories
97
+
98
+ * fix: remove container proxy code
99
+
100
+ * fix: remove container proxy code
101
+
102
+ * chore: fix project.json
103
+
104
+ * debugging
105
+
106
+ * fix: resolve backmerge issues with build
107
+
108
+ * Merge branch 'kill_child_compilers' into fix_backmerge_issues
109
+
110
+ # Conflicts:
111
+ # package-lock.json
112
+ # package.json
113
+ # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
114
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
115
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
116
+
117
+ * feat: enable eager sharing
118
+
119
+ * refactor: improve module hooks for eager loading and search
120
+
121
+ * refactor: cleanup custom jsonp and make es5
122
+
123
+ * refactor: cleanup inverted container code
124
+
125
+ * refactor: cleanup inverted container code
126
+ * automaticAsyncBoundary option has been removed
127
+
128
+ * fix: exclude specific pages from page map automatically
129
+
130
+ * refactor: conslidate codebase
131
+
132
+ * fix: improve hot reload share recovery
133
+
134
+ * refactor: remove server jsonp template
135
+
136
+ * chore: remove dead code from runtime modules
137
+
138
+ * fix: clean up jsonp getCustomJsonpCode
139
+
140
+ getting chunk loading global from compiler output options
141
+
142
+ * feat: adding cleanInitArrays runtime helper
143
+
144
+ * chore: remove share scope hoist and module hoisting system
145
+
146
+ * chore: cleanup code
147
+
148
+ * chore: remove dead code from add module runtime plugin
149
+
150
+ likely can remove whole plugin in future
151
+
152
+ * chore: remove logs from delegate modules
153
+
154
+ * chore: remove old utils
155
+
156
+ * fix: add warning on auto page stitch
157
+
158
+ * fix: remove commented out code from InvertedContainerPlugin.ts
159
+
160
+ * chore: improve logging to see if its local load or remote load
161
+
162
+ * chore: clean up old custom promises factories
163
+
164
+ * fix: remove container proxy code
165
+
166
+ * fix: remove container proxy code
167
+
168
+ * fix: resolve backmerge issues with build
169
+
170
+ * Merge branch 'kill_child_compilers' into fix_backmerge_issues
171
+
172
+ # Conflicts:
173
+ # package-lock.json
174
+ # package.json
175
+ # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
176
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
177
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
178
+
179
+ * feat: enable eager sharing
180
+
181
+ * refactor: improve module hooks for eager loading and search
182
+
183
+ * refactor: cleanup custom jsonp and make es5
184
+
185
+ * refactor: cleanup inverted container code
186
+
187
+ * refactor: cleanup inverted container code
188
+
189
+ * ci: fix install step with npm and NX
190
+
191
+ * test: remove tests for now
192
+
193
+ * chore(utils): release version 1.7.3-beta.0
194
+
195
+ * chore(utils): release version 1.7.3
196
+
197
+ * chore(node): release version 0.14.4-beta.0
198
+
199
+ * chore(node): release version 0.14.4
200
+
201
+ * chore(nextjs-mf): release version 6.4.1-beta.4
202
+
203
+ * fix: remove debugging runtime variable
204
+
205
+ * chore(nextjs-mf): release version 6.4.1-beta.5
206
+
207
+
208
+
209
+ ## [0.16.3-rc.1](https://github.com/module-federation/nextjs-mf/compare/node-0.16.3-rc.0...node-0.16.3-rc.1) (2023-07-01)
210
+
211
+
212
+ ### Features
213
+
214
+ * support edge workers ([4c43729](https://github.com/module-federation/nextjs-mf/commit/4c43729153a4130d84f92ea2e56f771f2e63abc8))
215
+ * support edge workers ([#1084](https://github.com/module-federation/nextjs-mf/issues/1084)) ([3f5df94](https://github.com/module-federation/nextjs-mf/commit/3f5df944ea787cf958fd4cf7fabed84432a50a10))
216
+
217
+
218
+
5
219
  ## [0.16.3-rc.0](https://github.com/module-federation/nextjs-mf/compare/node-0.16.2...node-0.16.3-rc.0) (2023-06-30)
6
220
 
7
221
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "@module-federation/node",
4
- "version": "0.16.3-rc.0",
4
+ "version": "1.0.0",
5
5
  "type": "commonjs",
6
6
  "main": "src/index.js",
7
7
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "encoding": "^0.1.13",
37
37
  "node-fetch": "^2.6.7",
38
- "@module-federation/utilities": "1.9.2-rc.0",
38
+ "@module-federation/utilities": "2.0.0",
39
39
  "webpack-sources": "3.2.3"
40
40
  },
41
41
  "peerDependencies": {
@@ -153,33 +153,32 @@ class ReadFileChunkLoadingRuntimeModule extends webpack_1.RuntimeModule {
153
153
  ])};`
154
154
  : '// no chunk install function needed',
155
155
  '',
156
- withLoading
157
- ? webpack_1.Template.asString([
158
- '// load script equivalent for server side',
156
+ withLoading ?
157
+ webpack_1.Template.asString([
158
+ "// load script equivalent for server side",
159
159
  `${webpack_1.RuntimeGlobals.loadScript} = ${runtimeTemplate.basicFunction('url,callback,chunkId', [
160
160
  webpack_1.Template.indent([
161
- 'if(!global.__remote_scope__) {',
162
- webpack_1.Template.indent([
163
- '// create a global scope for container, similar to how remotes are set on window in the browser',
164
- 'global.__remote_scope__ = {',
165
- '_config: {},',
166
- '}',
161
+ "if(!globalThis.__remote_scope__) {",
162
+ webpack_1.Template.indent(["// create a global scope for container, similar to how remotes are set on window in the browser",
163
+ "globalThis.__remote_scope__ = {",
164
+ "_config: {},",
165
+ "}",
167
166
  ]),
168
- '}',
167
+ "}",
169
168
  ]),
170
169
  webpack_1.Template.indent([
171
170
  loadScript_1.executeLoadTemplate,
172
171
  `executeLoad(url,callback,chunkId)`,
173
172
  ]),
174
173
  ])}`,
175
- ])
176
- : '// no remote script loader needed',
174
+ ]) : '// no remote script loader needed',
177
175
  withLoading
178
176
  ? webpack_1.Template.asString([
179
177
  '// ReadFile + VM.run chunk loading for javascript',
180
178
  `${fn}.readFileVm = function(chunkId, promises) {`,
181
179
  hasJsMatcher !== false
182
180
  ? webpack_1.Template.indent([
181
+ '',
183
182
  'var installedChunkData = installedChunks[chunkId];',
184
183
  'if(installedChunkData !== 0) { // 0 means "already installed".',
185
184
  webpack_1.Template.indent([
@@ -196,9 +195,9 @@ class ReadFileChunkLoadingRuntimeModule extends webpack_1.RuntimeModule {
196
195
  'var promise = new Promise(async function(resolve, reject) {',
197
196
  webpack_1.Template.indent([
198
197
  'installedChunkData = installedChunks[chunkId] = [resolve, reject];',
199
- `var filename = require('path').join(__dirname, ${JSON.stringify(rootOutputDir)} + ${webpack_1.RuntimeGlobals.getChunkScriptFilename}(chunkId));`,
200
- "var fs = require('fs');",
201
- 'if(fs.existsSync(filename)) {',
198
+ `var filename = typeof process !== \"undefined\" ? require('path').join(__dirname, ${JSON.stringify(rootOutputDir)} + ${webpack_1.RuntimeGlobals.getChunkScriptFilename}(chunkId)) : false;`,
199
+ "var fs = typeof process !== \"undefined\" ? require('fs') : false;",
200
+ 'if(fs && fs.existsSync(filename)) {',
202
201
  this._getLogger(`'chunk filename local load', chunkId`),
203
202
  webpack_1.Template.indent([
204
203
  "fs.readFile(filename, 'utf-8', function(err, content) {",
@@ -212,28 +211,36 @@ class ReadFileChunkLoadingRuntimeModule extends webpack_1.RuntimeModule {
212
211
  '});',
213
212
  ]),
214
213
  '} else {',
215
- this._getLogger(`'chunk filename remote load', chunkId`),
216
214
  webpack_1.Template.indent([
217
215
  loadScript_1.default,
218
216
  this._getLogger(`'needs to load remote module from ${JSON.stringify(name)}'`),
219
217
  this._getLogger(`'remotes known to'`, JSON.stringify(name), JSON.stringify(remotes)),
220
218
  // keys are mostly useless here, we want to find remote by its global (unique name)
221
- `var remotes = ${JSON.stringify(Object.values(remotesByType.normal).reduce((acc, remote) => {
219
+ `var remotes = ${JSON.stringify(Object.values(remotes).reduce((acc, remote) => {
222
220
  //TODO: need to handle all other cases like when remote is not a @ syntax string
223
221
  const [global, url] = remote.split('@');
224
222
  acc[global] = url;
225
223
  return acc;
226
224
  }, {}))};`,
227
- 'Object.assign(global.__remote_scope__._config, remotes)',
228
- 'const remoteRegistry = global.__remote_scope__._config',
225
+ webpack_1.Template.indent([
226
+ "if(!globalThis.__remote_scope__) {",
227
+ webpack_1.Template.indent(["// create a global scope for container, similar to how remotes are set on window in the browser",
228
+ "globalThis.__remote_scope__ = {",
229
+ "_config: {},",
230
+ "}",
231
+ ]),
232
+ "}",
233
+ ]),
234
+ 'Object.assign(globalThis.__remote_scope__._config, remotes)',
235
+ 'const remoteRegistry = globalThis.__remote_scope__._config',
229
236
  /*
230
- TODO: keying by global should be ok, but need to verify - need to deal with when user passes promise new promise() global will/should still exist - but can only be known at runtime
231
- */
232
- this._getLogger(`'remotes keyed by global name'`, JSON.stringify(remotesByType.normal)),
233
- this._getLogger(`'remote scope configs'`, 'global.__remote_scope__._config'),
237
+ TODO: keying by global should be ok, but need to verify - need to deal with when user passes promise new promise() global will/should still exist - but can only be known at runtime
238
+ */
239
+ this._getLogger(`'remotes keyed by global name'`, JSON.stringify(remotes)),
240
+ this._getLogger(`'remote scope configs'`, 'globalThis.__remote_scope__._config'),
234
241
  this._getLogger(`'before remote scope'`),
235
- this._getLogger(`'global.__remote_scope__'`, `global.__remote_scope__`),
236
- this._getLogger(`'global.__remote_scope__[${JSON.stringify(name)}]'`, `global.__remote_scope__[${JSON.stringify(name)}]`),
242
+ this._getLogger(`'globalThis.__remote_scope__'`, `globalThis.__remote_scope__`),
243
+ this._getLogger(`'globalThis.__remote_scope__[${JSON.stringify(name)}]'`, `globalThis.__remote_scope__[${JSON.stringify(name)}]`),
237
244
  /* TODO: this global.REMOTE_CONFIG doesnt work in this v5 core, not sure if i need to keep it or not
238
245
  not deleting it yet since i might need this for tracking all the remote entries across systems
239
246
  for now, im going to use locally known remote scope from remoteEntry config
@@ -261,26 +268,35 @@ class ReadFileChunkLoadingRuntimeModule extends webpack_1.RuntimeModule {
261
268
  // there may still be a use case for that with promise new promise, depending on how we design it.
262
269
  this._getLogger('"requestedRemote"', 'requestedRemote', 'current name', JSON.stringify(name)),
263
270
  `var scriptUrl = new URL(requestedRemote);`,
264
- this._getLogger(`'global.__remote_scope__'`, `global.__remote_scope__`),
271
+ this._getLogger(`'globalThis.__remote_scope__'`, `globalThis.__remote_scope__`),
265
272
  `var chunkName = ${webpack_1.RuntimeGlobals.getChunkScriptFilename}(chunkId);`,
266
273
  this._getLogger(`'chunkname to request'`, `chunkName`),
267
- `var fileToReplace = require('path').basename(scriptUrl.pathname);`,
274
+ `
275
+ var getBasenameFromUrl = (url) => {
276
+ const urlParts = url.split('/');
277
+ return urlParts[urlParts.length - 1];
278
+ };
279
+ var fileToReplace = typeof process !== "undefined" ? require('path').basename(scriptUrl.pathname) : getBasenameFromUrl(scriptUrl.pathname);`,
268
280
  `scriptUrl.pathname = scriptUrl.pathname.replace(fileToReplace, chunkName);`,
269
281
  this._getLogger(`'will load remote chunk'`, `scriptUrl.toString()`),
270
282
  `loadScript(scriptUrl.toString(), function(err, content) {`,
271
283
  webpack_1.Template.indent([
272
284
  this._getLogger(`'load script callback fired'`),
273
- "if(err) {console.error('error loading remote chunk', scriptUrl.toString(),'got',content,'with error', err); return reject(err);}",
285
+ "if(err) {console.error('error loading remote chunk', scriptUrl.toString(),'got',content); return reject(err);}",
274
286
  'var chunk = {};',
287
+ "if(typeof process !== 'undefined') {",
275
288
  'try {',
276
289
  "require('vm').runInThisContext('(function(exports, require, __dirname, __filename) {' + content + '\\n})', filename)" +
277
290
  "(chunk, require, require('path').dirname(filename), filename);",
278
291
  '} catch (e) {',
279
292
  "console.error('runInThisContext threw', e)",
280
293
  '}',
294
+ '} else {',
295
+ "eval('(function(exports, require, __dirname, __filename) {' + content + '\\n})')(chunk, __webpack_require__, '.', chunkName);",
296
+ '}',
281
297
  'installChunk(chunk);',
282
298
  ]),
283
- '}, chunkId);',
299
+ '});',
284
300
  ]),
285
301
  '}',
286
302
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"LoadFileChunkLoadingRuntimeModule.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/LoadFileCh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AAC,CAAC,kBAAQ,CAAC,QAAQ,CAAC;oBAChB,GAAG,wBAAc,CAAC,mBAAmB,iBAAiB;oBACtD,kBAAQ,CAAC,MAAM,CAAC;wBACd,gDAAgD;wBAChD,kBAAQ,CAAC,MAAM,CAAC;4BACd,kDAAkD,IAAI,CAAC,SAAS,CAC9D,aAAa,CACd,MAAM,wBAAc,CAAC,yBAAyB,MAAM;4BACrD,oEAAoE;4BACpE,kBAAQ,CAAC,MAAM,CAAC;gCACd,WAAW;gCACX,kBAAQ,CAAC,MAAM,CAAC;oCACd,6CAA6C;oCAC7C,qBAAqB;iCACtB,CAAC;gCACF,GAAG;gCACH,uCAAuC;gCACvC,yBAAyB;6BAC1B,CAAC;4BACF,KAAK;yBACN,CAAC;wBACF,KAAK;qBACN,CAAC;oBACF,GAAG;iBACJ,CAAC;gBACJ,CAAC,CAAC,oBAAoB;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAED,kBAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"LoadFileChunkLoadingRuntimeModule.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/LoadFileChunkLoadingRuntimeModule.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD;;EAEE;AAEF,YAAY,CAAC;;;AAGb,qCAAkE;AAClE,4DAA0D;AAC1D,2GAA2E;AAE3E,mEAAuE;AAmBvE,MAAM,iCAAkC,SAAQ,uBAAa;IAK3D,YACE,mBAAgC,EAChC,OAAiD,EACjD,mBAAwC;QAExC,KAAK,CAAC,wBAAwB,EAAE,uBAAa,CAAC,YAAY,CAAC,CAAC;QAC5D,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,KAAY,EAAE,aAAqB;QAClD,MAAM,OAAO,GAAG,KAAK,CAAC,eAAe,E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,CAAC;oCACd,6CAA6C;oCAC7C,qBAAqB;iCACtB,CAAC;gCACF,GAAG;gCACH,uCAAuC;gCACvC,yBAAyB;6BAC1B,CAAC;4BACF,KAAK;yBACN,CAAC;wBACF,KAAK;qBACN,CAAC;oBACF,GAAG;iBACJ,CAAC;gBACJ,CAAC,CAAC,oBAAoB;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAED,kBAAe,iCAAiC,CAAC"}
@@ -32,21 +32,21 @@ const parseRemotes = (remotes) => Object.entries(remotes).reduce((acc, remote) =
32
32
  exports.parseRemotes = parseRemotes;
33
33
  // server template to convert remote into promise new promise and use require.loadChunk to load the chunk
34
34
  const generateRemoteTemplate = (url, global) => `new Promise(function (resolve, reject) {
35
- if(!global.__remote_scope__) {
35
+ if(!globalThis.__remote_scope__) {
36
36
  // create a global scope for container, similar to how remotes are set on window in the browser
37
- global.__remote_scope__ = {
37
+ globalThis.__remote_scope__ = {
38
38
  _config: {},
39
39
  }
40
40
  }
41
41
 
42
- if (typeof global.__remote_scope__[${JSON.stringify(global)}] !== 'undefined') return resolve(global.__remote_scope__[${JSON.stringify(global)}]);
43
- global.__remote_scope__._config[${JSON.stringify(global)}] = ${JSON.stringify(url)};
42
+ if (typeof globalThis.__remote_scope__[${JSON.stringify(global)}] !== 'undefined') return resolve(globalThis.__remote_scope__[${JSON.stringify(global)}]);
43
+ globalThis.__remote_scope__._config[${JSON.stringify(global)}] = ${JSON.stringify(url)};
44
44
  var __webpack_error__ = new Error();
45
45
 
46
46
  __webpack_require__.l(
47
47
  ${JSON.stringify(url)},
48
48
  function (event) {
49
- if (typeof global.__remote_scope__[${JSON.stringify(global)}] !== 'undefined') return resolve(global.__remote_scope__[${JSON.stringify(global)}]);
49
+ if (typeof globalThis.__remote_scope__[${JSON.stringify(global)}] !== 'undefined') return resolve(globalThis.__remote_scope__[${JSON.stringify(global)}]);
50
50
  var realSrc = event && event.target && event.target.src;
51
51
  __webpack_error__.message = 'Loading script failed.\\n(' + event.message + ': ' + realSrc + ')';
52
52
  __webpack_error__.name = 'ScriptExternalLoadError';
@@ -1 +1 @@
1
- {"version":3,"file":"NodeFederationPlugin.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/NodeFederationPlugin.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAIb,4DAAmE;AAWnE,6BAA6B;AAC7B,6CAA6C;AAC7C,qDAAqD;AACrD,yFAAyF;AACzF,yDAAyD;AACzD,wEAAwE;AACxE,mEAAmE;AACnE,wDAAwD;AAExD;;;;;;IAMI;AACG,MAAM,YAAY,GAAG,CAAC,OAA4B,EAAE,EAAE,CAC3D,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IAC7C,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;QACrC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3B,OAAO,GAAG,CAAC;KACZ;IACD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAChE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO,GAAG,CAAC;KACZ;IACD,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3B,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAA4B,CAAC,CAAC;AAZtB,QAAA,YAAY,gBAYU;AACnC,yGAAyG;AAClG,MAAM,sBAAsB,GAAG,CACpC,GAAW,EACX,MAAW,EACX,EAAE,CAAC;;;;;;;;yCAQoC,I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G,QAAQ,CAAC;QAE7B,MAAM,aAAa,GAAG;YACpB,GAAG,IAAI,CAAC,QAAQ;YAChB,OAAO,EAAE,IAAA,oBAAY,EACnB,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,CACgB;SAC9C,CAAC;QAEF,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC;QAC9D,MAAM,UAAU,GACd,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAE9D,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;YACrC,MAAM,kBAAkB,GAAG;gBACzB,aAAa;gBACb,eAAe;gBACf,YAAY;gBACZ,UAAU;aACX,CAAC;YAEF;YACE,YAAY;YACZ,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;YACrC,YAAY;YACZ,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAClC,EACD;gBACA,MAAM,MAAM,GACV,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa;oBACrC,CAAC,CAAC,iBAAiB;oBACnB,CAAC,CAAC,iBAAiB,CAAC;gBACxB,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,OAAO,CAC3D,KAAK,EACL,MAAM,CACP,CAAC;aACH;SACF;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB;YACtC,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC;YACrD,OAAO,CAAC,8CAA8C,CAAC,CAAC,CACxD,aAAa,CACd,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"NodeFederationPlugin.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/NodeFederationPlugin.ts"],"names":[],"mappings":"AA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AC9C,CAAC;QAEF,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC;QAC9D,MAAM,UAAU,GACd,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAE9D,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;YACrC,MAAM,kBAAkB,GAAG;gBACzB,aAAa;gBACb,eAAe;gBACf,YAAY;gBACZ,UAAU;aACX,CAAC;YAEF;YACE,YAAY;YACZ,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;YACrC,YAAY;YACZ,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAClC,EACD;gBACA,MAAM,MAAM,GACV,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa;oBACrC,CAAC,CAAC,iBAAiB;oBACnB,CAAC,CAAC,iBAAiB,CAAC;gBACxB,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,OAAO,CAC3D,KAAK,EACL,MAAM,CACP,CAAC;aACH;SACF;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB;YACtC,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC;YACrD,OAAO,CAAC,8CAA8C,CAAC,CAAC,CACxD,aAAa,CACd,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
@@ -2,6 +2,6 @@
2
2
  * loadScript(baseURI, fileName, cb)
3
3
  * loadScript(scriptUrl, cb)
4
4
  */
5
- declare const _default: "\n function loadScript(url, cb, chunkID) {\n if (global.webpackChunkLoad) {\n global.webpackChunkLoad(url).then(function (resp) {\n return resp.text();\n }).then(function (rawData) {\n cb(null, rawData);\n }).catch(function (err) {\n console.error('Federated Chunk load failed', error);\n return cb(error)\n });\n } else {\n //TODO https support\n let request = (url.startsWith('https') ? require('https') : require('http')).get(url, function (resp) {\n if (resp.statusCode === 200) {\n let rawData = '';\n resp.setEncoding('utf8');\n resp.on('data', chunk => {\n rawData += chunk;\n });\n resp.on('end', () => {\n cb(null, rawData);\n });\n } else {\n cb(resp);\n }\n });\n request.on('error', error => {\n console.error('Federated Chunk load failed', error);\n return cb(error)\n });\n }\n }\n";
5
+ declare const _default: "\n function loadScript(url, cb, chunkID) {\n var url;\n var cb = arguments[arguments.length - 1];\n if (typeof cb !== \"function\") {\n throw new Error(\"last argument should be a function\");\n }\n if (arguments.length === 2) {\n url = arguments[0];\n } else if (arguments.length === 3) {\n url = new URL(arguments[1], arguments[0]).toString();\n } else {\n throw new Error(\"invalid number of arguments\");\n }\n if (globalThis.webpackChunkLoad) {\n globalThis.webpackChunkLoad(url).then(function (resp) {\n return resp.text();\n }).then(function (rawData) {\n cb(null, rawData);\n }).catch(function (err) {\n console.error('Federated Chunk load failed', err);\n return cb(err)\n });\n } else if (typeof process !== 'undefined') {\n //TODO https support\n let request = (url.startsWith('https') ? require('https') : require('http')).get(url, function (resp) {\n if (resp.statusCode === 200) {\n let rawData = '';\n resp.setEncoding('utf8');\n resp.on('data', chunk => {\n rawData += chunk;\n });\n resp.on('end', () => {\n cb(null, rawData);\n });\n } else {\n cb(resp);\n }\n });\n request.on('error', error => {\n console.error('Federated Chunk load failed', error);\n return cb(error)\n });\n } else {\n fetch(url).then(function (resp) {\n return resp.text();\n }).then(function (rawData) {\n cb(null, rawData);\n }).catch(function (err) {\n console.error('Federated Chunk load failed', err);\n return cb(err)\n })\n }\n }\n";
6
6
  export default _default;
7
- export declare const executeLoadTemplate = "\n function executeLoad(url, callback, name) {\n if(!name) {\n throw new Error('__webpack_require__.l name is required for ' + url);\n }\n\n if (typeof global.__remote_scope__[name] !== 'undefined') return callback(global.__remote_scope__[name]);\n const vm = require('vm');\n (global.webpackChunkLoad || global.fetch || require(\"node-fetch\"))(url).then(function (res) {\n return res.text();\n }).then(function (scriptContent) {\n try {\n // TODO: remove conditional in v7, this is to prevent breaking change between v6.0.x and v6.1.x\n const vmContext = typeof URLSearchParams === 'undefined' ?{exports, require, module, global, __filename, __dirname, URL, URLSearchParams, console, process,Buffer, ...global, remoteEntryName: name}:\n {exports, require, module, global, __filename, __dirname, URL, URLSearchParams, console, process,Buffer, ...global, remoteEntryName: name};\n const remote = vm.runInNewContext(scriptContent + '\\nmodule.exports', vmContext, {filename: 'node-federation-loader-' + name + '.vm'});\n const foundContainer = remote[name] || remote\n\n if(!global.__remote_scope__[name]) {\n global.__remote_scope__[name] = foundContainer;\n global.__remote_scope__._config[name] = url;\n }\n callback(global.__remote_scope__[name]);\n } catch (e) {\n console.error('executeLoad hit catch block');\n e.target = {src: url};\n callback(e);\n }\n }).catch((e) => {\n e.target = {src: url};\n callback(e);\n });\n }\n";
7
+ export declare const executeLoadTemplate = "\n function executeLoad(url, callback, name) {\n if (!name) {\n throw new Error('__webpack_require__.l name is required for ' + url);\n }\n if (typeof globalThis.__remote_scope__[name] !== 'undefined') return callback(globalThis.__remote_scope__[name]);\n // if its a worker or node\n if (typeof process !== 'undefined') {\n const vm = require('vm');\n (globalThis.webpackChunkLoad || globalThis.fetch || require(\"node-fetch\"))(url).then(function (res) {\n return res.text();\n }).then(function (scriptContent) {\n try {\n const m = require('module');\n\n const remoteCapsule = vm.runInThisContext(m.wrap(scriptContent), 'node-federation-loader-' + name + '.vm')\n const exp = {};\n let remote = {exports:{}};\n remoteCapsule(exp,require,remote,'node-federation-loader-' + name + '.vm',__dirname);\n remote = remote.exports || remote;\n globalThis.__remote_scope__[name] = remote[name] || remote;\n globalThis.__remote_scope__._config[name] = url;\n callback(globalThis.__remote_scope__[name])\n } catch (e) {\n console.error('executeLoad hit catch block', e);\n e.target = {src: url};\n callback(e);\n }\n }).catch((e) => {\n e.target = {src: url};\n callback(e);\n });\n } else {\n fetch(url).then(function (res) {\n return res.text();\n }).then(function (scriptContent) {\n try {\n const remote = eval('let module = {};' + scriptContent + '\\nmodule.exports')\n globalThis.__remote_scope__[name] = remote[name] || remote;\n globalThis.__remote_scope__._config[name] = url;\n callback(globalThis.__remote_scope__[name])\n } catch (e) {\n console.error('executeLoad hit catch block',e);\n e.target = {src: url};\n callback(e);\n }\n });\n }\n }\n";
@@ -8,16 +8,28 @@ exports.executeLoadTemplate = void 0;
8
8
  //language=JS
9
9
  exports.default = `
10
10
  function loadScript(url, cb, chunkID) {
11
- if (global.webpackChunkLoad) {
12
- global.webpackChunkLoad(url).then(function (resp) {
11
+ var url;
12
+ var cb = arguments[arguments.length - 1];
13
+ if (typeof cb !== "function") {
14
+ throw new Error("last argument should be a function");
15
+ }
16
+ if (arguments.length === 2) {
17
+ url = arguments[0];
18
+ } else if (arguments.length === 3) {
19
+ url = new URL(arguments[1], arguments[0]).toString();
20
+ } else {
21
+ throw new Error("invalid number of arguments");
22
+ }
23
+ if (globalThis.webpackChunkLoad) {
24
+ globalThis.webpackChunkLoad(url).then(function (resp) {
13
25
  return resp.text();
14
26
  }).then(function (rawData) {
15
27
  cb(null, rawData);
16
28
  }).catch(function (err) {
17
- console.error('Federated Chunk load failed', error);
18
- return cb(error)
29
+ console.error('Federated Chunk load failed', err);
30
+ return cb(err)
19
31
  });
20
- } else {
32
+ } else if (typeof process !== 'undefined') {
21
33
  //TODO https support
22
34
  let request = (url.startsWith('https') ? require('https') : require('http')).get(url, function (resp) {
23
35
  if (resp.statusCode === 200) {
@@ -37,6 +49,15 @@ exports.default = `
37
49
  console.error('Federated Chunk load failed', error);
38
50
  return cb(error)
39
51
  });
52
+ } else {
53
+ fetch(url).then(function (resp) {
54
+ return resp.text();
55
+ }).then(function (rawData) {
56
+ cb(null, rawData);
57
+ }).catch(function (err) {
58
+ console.error('Federated Chunk load failed', err);
59
+ return cb(err)
60
+ })
40
61
  }
41
62
  }
42
63
  `;
@@ -44,36 +65,52 @@ exports.default = `
44
65
  //language=JS
45
66
  exports.executeLoadTemplate = `
46
67
  function executeLoad(url, callback, name) {
47
- if(!name) {
68
+ if (!name) {
48
69
  throw new Error('__webpack_require__.l name is required for ' + url);
49
70
  }
71
+ if (typeof globalThis.__remote_scope__[name] !== 'undefined') return callback(globalThis.__remote_scope__[name]);
72
+ // if its a worker or node
73
+ if (typeof process !== 'undefined') {
74
+ const vm = require('vm');
75
+ (globalThis.webpackChunkLoad || globalThis.fetch || require("node-fetch"))(url).then(function (res) {
76
+ return res.text();
77
+ }).then(function (scriptContent) {
78
+ try {
79
+ const m = require('module');
50
80
 
51
- if (typeof global.__remote_scope__[name] !== 'undefined') return callback(global.__remote_scope__[name]);
52
- const vm = require('vm');
53
- (global.webpackChunkLoad || global.fetch || require("node-fetch"))(url).then(function (res) {
54
- return res.text();
55
- }).then(function (scriptContent) {
56
- try {
57
- // TODO: remove conditional in v7, this is to prevent breaking change between v6.0.x and v6.1.x
58
- const vmContext = typeof URLSearchParams === 'undefined' ?{exports, require, module, global, __filename, __dirname, URL, URLSearchParams, console, process,Buffer, ...global, remoteEntryName: name}:
59
- {exports, require, module, global, __filename, __dirname, URL, URLSearchParams, console, process,Buffer, ...global, remoteEntryName: name};
60
- const remote = vm.runInNewContext(scriptContent + '\\nmodule.exports', vmContext, {filename: 'node-federation-loader-' + name + '.vm'});
61
- const foundContainer = remote[name] || remote
62
-
63
- if(!global.__remote_scope__[name]) {
64
- global.__remote_scope__[name] = foundContainer;
65
- global.__remote_scope__._config[name] = url;
81
+ const remoteCapsule = vm.runInThisContext(m.wrap(scriptContent), 'node-federation-loader-' + name + '.vm')
82
+ const exp = {};
83
+ let remote = {exports:{}};
84
+ remoteCapsule(exp,require,remote,'node-federation-loader-' + name + '.vm',__dirname);
85
+ remote = remote.exports || remote;
86
+ globalThis.__remote_scope__[name] = remote[name] || remote;
87
+ globalThis.__remote_scope__._config[name] = url;
88
+ callback(globalThis.__remote_scope__[name])
89
+ } catch (e) {
90
+ console.error('executeLoad hit catch block', e);
91
+ e.target = {src: url};
92
+ callback(e);
66
93
  }
67
- callback(global.__remote_scope__[name]);
68
- } catch (e) {
69
- console.error('executeLoad hit catch block');
94
+ }).catch((e) => {
70
95
  e.target = {src: url};
71
96
  callback(e);
72
- }
73
- }).catch((e) => {
74
- e.target = {src: url};
75
- callback(e);
76
- });
97
+ });
98
+ } else {
99
+ fetch(url).then(function (res) {
100
+ return res.text();
101
+ }).then(function (scriptContent) {
102
+ try {
103
+ const remote = eval('let module = {};' + scriptContent + '\\nmodule.exports')
104
+ globalThis.__remote_scope__[name] = remote[name] || remote;
105
+ globalThis.__remote_scope__._config[name] = url;
106
+ callback(globalThis.__remote_scope__[name])
107
+ } catch (e) {
108
+ console.error('executeLoad hit catch block',e);
109
+ e.target = {src: url};
110
+ callback(e);
111
+ }
112
+ });
113
+ }
77
114
  }
78
115
  `;
79
116
  //# sourceMappingURL=loadScript.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadScript.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/loadScript.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,aAAa;AACb,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCd,CAAC;AAEF,0EAA0E;AAC1E,aAAa;AACA,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClC,CAAC"}
1
+ {"version":3,"file":"loadScript.js","sourceRoot":"","sources":["../../../../../packages/node/src/plugins/loadScript.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,aAAa;AACb,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDd,CAAC;AAEF,0EAA0E;AAC1E,aAAa;AACA,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDlC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Initialize usedChunks and share it globally.
3
3
  * @type {Set}
4
4
  */
5
- export declare const usedChunks: any;
5
+ export declare const usedChunks: Set<string>;
6
6
  /**
7
7
  * Flush the chunks and return a deduplicated array of chunks.
8
8
  * @returns {Promise<Array>} A promise that resolves to an array of deduplicated chunks.
@@ -71,17 +71,18 @@ const processChunk = async (chunk, shareMap, hostStats) => {
71
71
  // Split the chunk string into remote and request
72
72
  const [remote, request] = chunk.split('->');
73
73
  // If the remote is not defined in the global config, return
74
- if (!global.__remote_scope__._config[remote]) {
74
+ if (!globalThis.__remote_scope__._config[remote]) {
75
75
  console.error(`flush chunks:`, `Remote ${remote} is not defined in the global config`);
76
76
  return;
77
77
  }
78
78
  try {
79
79
  // Extract the remote name from the URL
80
- const remoteName = new URL(global.__remote_scope__._config[remote]).pathname
80
+ //@ts-ignore
81
+ const remoteName = new URL(globalThis.__remote_scope__._config[remote]).pathname
81
82
  .split('/')
82
83
  .pop();
83
84
  // Construct the stats file URL from the remote config
84
- const statsFile = global.__remote_scope__._config[remote]
85
+ const statsFile = globalThis.__remote_scope__._config[remote]
85
86
  .replace(remoteName, 'federated-stats.json')
86
87
  .replace('ssr', 'chunks');
87
88
  let stats = {};
@@ -98,7 +99,7 @@ const processChunk = async (chunk, shareMap, hostStats) => {
98
99
  // global.__remote_scope__._config[remote].replace('ssr', 'chunks')
99
100
  // );
100
101
  // Extract the prefix from the remote config
101
- const [prefix] = global.__remote_scope__._config[remote].split('static/');
102
+ const [prefix] = globalThis.__remote_scope__._config[remote].split('static/');
102
103
  // Process federated modules from the stats object
103
104
  // @ts-ignore
104
105
  if (stats.federatedModules) {
@@ -127,9 +128,6 @@ const processChunk = async (chunk, shareMap, hostStats) => {
127
128
  // Check if the module is in the shareMap
128
129
  if (shareMap[module]) {
129
130
  // If the module is from the host, log the host stats
130
- if (shareMap[module][0].startsWith('host__')) {
131
- console.log('host', hostStats);
132
- }
133
131
  }
134
132
  });
135
133
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flush-chunks.js","sourceRoot":"","sources":["../../../../../packages/node/src/utils/flush-chunks.ts"],"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,CAAC,CAAC,CAAC;KAClC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACI,MAAM,WAAW,GAAG,KAAK,IAAI,EAAE;IACpC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAC;IAClC,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAElC,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,KAAK,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACzC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CACzC,CACF,CAAC;IAEF,+BAA+B;IAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAE3D,mBAAmB;IACnB,kBAAU,CAAC,KAAK,EAAE,CAAC;IACnB,0CAA0C;IAC1C,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB"}
@@ -17,7 +17,7 @@ const performReload = (shouldReload) => {
17
17
  req = __non_webpack_require__;
18
18
  }
19
19
  //@ts-ignore
20
- global.__remote_scope__ = {
20
+ globalThis.__remote_scope__ = {
21
21
  _config: {},
22
22
  _medusa: {},
23
23
  };
@@ -39,8 +39,10 @@ const performReload = (shouldReload) => {
39
39
  webpack whether its hash has changed since last time or not
40
40
  */
41
41
  const revalidate = () => {
42
- if (global.__remote_scope__) {
43
- const remoteScope = global.__remote_scope__;
42
+ //@ts-ignore
43
+ if (globalThis.__remote_scope__) {
44
+ //@ts-ignore
45
+ const remoteScope = globalThis.__remote_scope__;
44
46
  return new Promise((res) => {
45
47
  const fetches = [];
46
48
  for (const property in remoteScope) {
@@ -124,7 +126,8 @@ exports.revalidate = revalidate;
124
126
  allows us to use fetch in our tests without having to mock out nodefetch
125
127
  */
126
128
  function getFetchModule() {
127
- const loadedModule = global.webpackChunkLoad || global.fetch;
129
+ //@ts-ignore
130
+ const loadedModule = globalThis.webpackChunkLoad || global.webpackChunkLoad || global.fetch;
128
131
  if (loadedModule) {
129
132
  return loadedModule;
130
133
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hot-reload.js","sourceRoot":"","sources":["../../../../../packages/node/src/utils/hot-reload.ts"],"names":[],"mappings":";;;;AAAA,MAAM,OAAO,GAAG,EAA4B,CAAC;AAC7C,4DAA4B;AAC5B,MAAM,iBAAiB,GACrB,4DAA4D,CAAC;AAE/D,MAAM,aAAa,GAAG,CAAC,YAAiB,EAAE,EAAE;IAC1C,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,GAAgB,CAAC;IACrB,IAAI,OAAO,uBAAuB,KAAK,WAAW,EAAE;QAClD,GAAG,GAAG,OAAO,CAAC;KACf;SAAM;QACL,GAAG,GAAG,uBAAsC,CAAC;KAC9C;IAED,YAAY;IACZ,MAAM,CAAC,gBAAgB,GAAG;QACxB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ,CAAC;IACF,YAAY;IACZ,UAAU,CAAC,WAAW,GAAG,EAAE,CAAC;IAC5B,YAAY;IACZ,UAAU,CAAC,cAAc,GAAG,EAAE,CAAC;IAE/B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACrC,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC/B,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACvB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AACF;;;;;IAKI;AACG,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,IAAI,MAAM,CAAC,gBAAgB,EAAE;QAC3B,MAAM,WAAW,GAAG,MAAM,C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