@module-federation/utilities 3.1.83 → 3.1.84

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 (47) hide show
  1. package/dist/cjs/Logger.js +60 -0
  2. package/dist/cjs/components/ErrorBoundary.js +96 -0
  3. package/dist/cjs/components/FederationBoundary.js +101 -0
  4. package/dist/cjs/index.js +170 -0
  5. package/dist/cjs/plugins/DelegateModulesPlugin.js +130 -0
  6. package/dist/cjs/types/index.js +33 -0
  7. package/dist/cjs/utils/common.js +173 -0
  8. package/dist/cjs/utils/getRuntimeRemotes.js +102 -0
  9. package/dist/cjs/utils/getRuntimeRemotes.test.js +98 -0
  10. package/dist/cjs/utils/importDelegateModule.test.js +101 -0
  11. package/dist/cjs/utils/importDelegatedModule.js +124 -0
  12. package/dist/cjs/utils/importRemote.js +174 -0
  13. package/dist/cjs/utils/isEmpty.js +56 -0
  14. package/dist/cjs/utils/pure.js +212 -0
  15. package/dist/cjs/utils/react.js +71 -0
  16. package/dist/esm/Logger.mjs +14 -0
  17. package/dist/esm/components/ErrorBoundary.mjs +33 -0
  18. package/dist/esm/components/FederationBoundary.mjs +38 -0
  19. package/dist/esm/index.mjs +34 -0
  20. package/dist/esm/plugins/DelegateModulesPlugin.mjs +84 -0
  21. package/dist/esm/types/index.mjs +6 -0
  22. package/dist/esm/utils/common.mjs +126 -0
  23. package/dist/esm/utils/getRuntimeRemotes.mjs +52 -0
  24. package/dist/esm/utils/getRuntimeRemotes.test.mjs +87 -0
  25. package/dist/esm/utils/importDelegateModule.test.mjs +90 -0
  26. package/dist/esm/utils/importDelegatedModule.mjs +74 -0
  27. package/dist/esm/utils/importRemote.mjs +137 -0
  28. package/dist/esm/utils/isEmpty.mjs +10 -0
  29. package/dist/esm/utils/pure.mjs +164 -0
  30. package/dist/esm/utils/react.mjs +8 -0
  31. package/package.json +2 -2
  32. package/dist/index.cjs.js +0 -555
  33. package/dist/index.d.ts +0 -1
  34. package/dist/index.esm.js +0 -543
  35. /package/dist/{src → types}/Logger.d.ts +0 -0
  36. /package/dist/{src → types}/components/ErrorBoundary.d.ts +0 -0
  37. /package/dist/{src → types}/components/FederationBoundary.d.ts +0 -0
  38. /package/dist/{src → types}/index.d.ts +0 -0
  39. /package/dist/{src → types}/plugins/DelegateModulesPlugin.d.ts +0 -0
  40. /package/dist/{src → types}/types/index.d.ts +0 -0
  41. /package/dist/{src → types}/utils/common.d.ts +0 -0
  42. /package/dist/{src → types}/utils/getRuntimeRemotes.d.ts +0 -0
  43. /package/dist/{src → types}/utils/importDelegatedModule.d.ts +0 -0
  44. /package/dist/{src → types}/utils/importRemote.d.ts +0 -0
  45. /package/dist/{src → types}/utils/isEmpty.d.ts +0 -0
  46. /package/dist/{src → types}/utils/pure.d.ts +0 -0
  47. /package/dist/{src → types}/utils/react.d.ts +0 -0
package/dist/index.esm.js DELETED
@@ -1,543 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
-
17
-
18
- function __awaiter(thisArg, _arguments, P, generator) {
19
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
- return new (P || (P = Promise))(function (resolve, reject) {
21
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
- step((generator = generator.apply(thisArg, _arguments || [])).next());
25
- });
26
- }
27
-
28
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
29
- var e = new Error(message);
30
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
31
- };
32
-
33
- const pure = typeof process !== 'undefined' ? process.env['REMOTES'] || {} : {};
34
- const remoteVars = pure;
35
- const extractUrlAndGlobal = (urlAndGlobal) => {
36
- const index = urlAndGlobal.indexOf('@');
37
- if (index <= 0 || index === urlAndGlobal.length - 1) {
38
- throw new Error(`Invalid request "${urlAndGlobal}"`);
39
- }
40
- return [urlAndGlobal.substring(index + 1), urlAndGlobal.substring(0, index)];
41
- };
42
- const loadScript = (keyOrRuntimeRemoteItem) => {
43
- const runtimeRemotes = getRuntimeRemotes$1();
44
- // 1) Load remote container if needed
45
- let asyncContainer;
46
- const reference = typeof keyOrRuntimeRemoteItem === 'string'
47
- ? runtimeRemotes[keyOrRuntimeRemoteItem]
48
- : keyOrRuntimeRemoteItem;
49
- if (reference.asyncContainer) {
50
- asyncContainer =
51
- typeof reference.asyncContainer.then === 'function'
52
- ? reference.asyncContainer
53
- : // @ts-ignore
54
- reference.asyncContainer();
55
- }
56
- else {
57
- // This casting is just to satisfy typescript,
58
- // In reality remoteGlobal will always be a string;
59
- const remoteGlobal = reference.global;
60
- // Check if theres an override for container key if not use remote global
61
- const containerKey = reference.uniqueKey
62
- ? reference.uniqueKey
63
- : remoteGlobal;
64
- const __webpack_error__ = new Error();
65
- // @ts-ignore
66
- const globalScope =
67
- // @ts-ignore
68
- typeof window !== 'undefined' ? window : globalThis.__remote_scope__;
69
- if (typeof window === 'undefined') {
70
- //@ts-ignore
71
- globalScope['_config'][containerKey] = reference.url;
72
- }
73
- else {
74
- // to match promise template system, can be removed once promise template is gone
75
- //@ts-ignore
76
- if (!globalScope['remoteLoading']) {
77
- //@ts-ignore
78
- globalScope['remoteLoading'] = {};
79
- }
80
- //@ts-ignore
81
- if (globalScope['remoteLoading'][containerKey]) {
82
- //@ts-ignore
83
- return globalScope['remoteLoading'][containerKey];
84
- }
85
- }
86
- // @ts-ignore
87
- asyncContainer = new Promise(function (resolve, reject) {
88
- function resolveRemoteGlobal() {
89
- //@ts-ignore
90
- const asyncContainer = globalScope[remoteGlobal];
91
- return resolve(asyncContainer);
92
- }
93
- //@ts-ignore
94
- if (typeof globalScope[remoteGlobal] !== 'undefined') {
95
- return resolveRemoteGlobal();
96
- }
97
- __webpack_require__.l(reference.url, function (event) {
98
- //@ts-ignore
99
- if (typeof globalScope[remoteGlobal] !== 'undefined') {
100
- return resolveRemoteGlobal();
101
- }
102
- const errorType = event && (event.type === 'load' ? 'missing' : event.type);
103
- const realSrc = event && event.target && event.target.src;
104
- __webpack_error__.message =
105
- 'Loading script failed.\n(' +
106
- errorType +
107
- ': ' +
108
- realSrc +
109
- ' or global var ' +
110
- remoteGlobal +
111
- ')';
112
- __webpack_error__.name = 'ScriptExternalLoadError';
113
- __webpack_error__.type = errorType;
114
- __webpack_error__.request = realSrc;
115
- reject(__webpack_error__);
116
- }, containerKey);
117
- }).catch(function (err) {
118
- console.error('container is offline, returning fake remote');
119
- console.error(err);
120
- return {
121
- fake: true,
122
- // @ts-ignore
123
- get: (arg) => {
124
- console.warn('faking', arg, 'module on, its offline');
125
- return Promise.resolve(() => {
126
- return {
127
- __esModule: true,
128
- default: () => {
129
- return null;
130
- },
131
- };
132
- });
133
- },
134
- //eslint-disable-next-line
135
- init: () => { },
136
- };
137
- });
138
- if (typeof window !== 'undefined') {
139
- //@ts-ignore
140
- globalScope['remoteLoading'][containerKey] = asyncContainer;
141
- }
142
- }
143
- return asyncContainer;
144
- };
145
- const getRuntimeRemotes$1 = () => {
146
- return Object.entries(remoteVars).reduce((acc, [key, value]) => {
147
- if (typeof value === 'object' && typeof value.then === 'function') {
148
- acc[key] = { asyncContainer: value };
149
- }
150
- else if (typeof value === 'function') {
151
- acc[key] = { asyncContainer: Promise.resolve(value()) };
152
- }
153
- else if (typeof value === 'string') {
154
- if (value.startsWith('internal ')) {
155
- const [request, query] = value.replace('internal ', '').split('?');
156
- if (query) {
157
- const remoteSyntax = new URLSearchParams(query).get('remote');
158
- if (remoteSyntax) {
159
- const [url, global] = extractUrlAndGlobal(remoteSyntax);
160
- acc[key] = { global, url };
161
- }
162
- }
163
- }
164
- else {
165
- const [url, global] = extractUrlAndGlobal(value);
166
- acc[key] = { global, url };
167
- }
168
- }
169
- else {
170
- console.warn('remotes process', process.env['REMOTES']);
171
- throw new Error(`[mf] Invalid value received for runtime_remote "${key}"`);
172
- }
173
- return acc;
174
- }, {});
175
- };
176
-
177
- /* eslint-disable @typescript-eslint/ban-ts-comment */
178
- const createContainerSharingScope = (asyncContainer) => {
179
- // @ts-ignore
180
- return asyncContainer
181
- .then(function (container) {
182
- if (!__webpack_share_scopes__['default']) {
183
- // not always a promise, so we wrap it in a resolve
184
- return Promise.resolve(__webpack_init_sharing__('default')).then(function () {
185
- return container;
186
- });
187
- }
188
- else {
189
- return container;
190
- }
191
- })
192
- .then(function (container) {
193
- try {
194
- // WARNING: here might be a potential BUG.
195
- // `container.init` does not return a Promise, and here we do not call `then` on it.
196
- // But according to [docs](https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers)
197
- // it must be async.
198
- // The problem may be in Proxy in NextFederationPlugin.js.
199
- // or maybe a bug in the webpack itself - instead of returning rejected promise it just throws an error.
200
- // But now everything works properly and we keep this code as is.
201
- container.init(__webpack_share_scopes__['default']);
202
- }
203
- catch (e) {
204
- // maybe container already initialized so nothing to throw
205
- }
206
- return container;
207
- });
208
- };
209
- /**
210
- * Return initialized remote container by remote's key or its runtime remote item data.
211
- *
212
- * `runtimeRemoteItem` might be
213
- * { global, url } - values obtained from webpack remotes option `global@url`
214
- * or
215
- * { asyncContainer } - async container is a promise that resolves to the remote container
216
- */
217
- const injectScript = (keyOrRuntimeRemoteItem) => __awaiter(void 0, void 0, void 0, function* () {
218
- const asyncContainer = loadScript(keyOrRuntimeRemoteItem);
219
- return createContainerSharingScope(asyncContainer);
220
- });
221
- /**
222
- * Creates runtime variables from the provided remotes.
223
- * If the value of a remote starts with 'promise ' or 'external ', it is transformed into a function that returns the promise call.
224
- * Otherwise, the value is stringified.
225
- * @param {Remotes} remotes - The remotes to create runtime variables from.
226
- * @returns {Record<string, string>} - The created runtime variables.
227
- */
228
- const createRuntimeVariables = (remotes) => {
229
- if (!remotes) {
230
- return {};
231
- }
232
- return Object.entries(remotes).reduce((acc, [key, value]) => {
233
- if (value.startsWith('promise ') || value.startsWith('external ')) {
234
- const promiseCall = value.split(' ')[1];
235
- acc[key] = `function() {
236
- return ${promiseCall}
237
- }`;
238
- }
239
- else {
240
- acc[key] = JSON.stringify(value);
241
- }
242
- return acc;
243
- }, {});
244
- };
245
- /**
246
- * Returns initialized webpack RemoteContainer.
247
- * If its' script does not loaded - then load & init it firstly.
248
- */
249
- const getContainer = (remoteContainer) => __awaiter(void 0, void 0, void 0, function* () {
250
- if (!remoteContainer) {
251
- throw Error(`Remote container options is empty`);
252
- }
253
- const containerScope = typeof window !== 'undefined'
254
- ? window
255
- : globalThis.__remote_scope__;
256
- let containerKey;
257
- if (typeof remoteContainer === 'string') {
258
- containerKey = remoteContainer;
259
- }
260
- else {
261
- containerKey = remoteContainer.uniqueKey;
262
- if (!containerScope[containerKey]) {
263
- const container = yield injectScript({
264
- global: remoteContainer.global,
265
- url: remoteContainer.url,
266
- });
267
- if (!container) {
268
- throw Error(`Remote container ${remoteContainer.url} is empty`);
269
- }
270
- }
271
- }
272
- return containerScope[containerKey];
273
- });
274
- /**
275
- * Return remote module from container.
276
- * If you provide `exportName` it automatically return exact property value from module.
277
- *
278
- * @example
279
- * remote.getModule('./pages/index', 'default')
280
- */
281
- const getModule = (_a) => __awaiter(void 0, [_a], void 0, function* ({ remoteContainer, modulePath, exportName, }) {
282
- const container = yield getContainer(remoteContainer);
283
- try {
284
- const modFactory = yield (container === null || container === void 0 ? void 0 : container.get(modulePath));
285
- if (!modFactory) {
286
- return undefined;
287
- }
288
- const mod = modFactory();
289
- if (exportName) {
290
- return mod && typeof mod === 'object' ? mod[exportName] : undefined;
291
- }
292
- else {
293
- return mod;
294
- }
295
- }
296
- catch (error) {
297
- console.error(error);
298
- return undefined;
299
- }
300
- });
301
-
302
- const isObjectEmpty = (obj) => {
303
- for (const x in obj) {
304
- return false;
305
- }
306
- return true;
307
- };
308
-
309
- /**
310
- * Constant for remote entry file
311
- * @constant {string}
312
- */
313
- const REMOTE_ENTRY_FILE = 'remoteEntry.js';
314
- /**
315
- * Function to load remote
316
- * @function
317
- * @param {ImportRemoteOptions['url']} url - The url of the remote module
318
- * @param {ImportRemoteOptions['scope']} scope - The scope of the remote module
319
- * @param {ImportRemoteOptions['bustRemoteEntryCache']} bustRemoteEntryCache - Flag to bust the remote entry cache
320
- * @returns {Promise<void>} A promise that resolves when the remote is loaded
321
- */
322
- const loadRemote = (url, scope, bustRemoteEntryCache) => new Promise((resolve, reject) => {
323
- const timestamp = bustRemoteEntryCache ? `?t=${new Date().getTime()}` : '';
324
- const webpackRequire = __webpack_require__;
325
- webpackRequire.l(`${url}${timestamp}`, (event) => {
326
- var _a;
327
- if ((event === null || event === void 0 ? void 0 : event.type) === 'load') {
328
- // Script loaded successfully:
329
- return resolve();
330
- }
331
- const realSrc = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.src;
332
- const error = new Error();
333
- error.message = 'Loading script failed.\n(missing: ' + realSrc + ')';
334
- error.name = 'ScriptExternalLoadError';
335
- reject(error);
336
- }, scope);
337
- });
338
- const loadEsmRemote = (url, scope) => __awaiter(void 0, void 0, void 0, function* () {
339
- const module = yield import(/* webpackIgnore: true */ url);
340
- if (!module) {
341
- throw new Error(`Unable to load requested remote from ${url} with scope ${scope}`);
342
- }
343
- window[scope] = Object.assign(Object.assign({}, module), { __initializing: false, __initialized: false });
344
- });
345
- /**
346
- * Function to initialize sharing
347
- * @async
348
- * @function
349
- */
350
- const initSharing = () => __awaiter(void 0, void 0, void 0, function* () {
351
- const webpackShareScopes = __webpack_share_scopes__;
352
- if (!(webpackShareScopes === null || webpackShareScopes === void 0 ? void 0 : webpackShareScopes.default)) {
353
- yield __webpack_init_sharing__('default');
354
- }
355
- });
356
- /**
357
- * Function to initialize container
358
- * @async
359
- * @function
360
- * @param {WebpackRemoteContainer} containerScope - The container scope
361
- */
362
- const initContainer = (containerScope) => __awaiter(void 0, void 0, void 0, function* () {
363
- try {
364
- const webpackShareScopes = __webpack_share_scopes__;
365
- if (!containerScope.__initialized && !containerScope.__initializing) {
366
- containerScope.__initializing = true;
367
- yield containerScope.init(webpackShareScopes.default);
368
- containerScope.__initialized = true;
369
- delete containerScope.__initializing;
370
- }
371
- }
372
- catch (error) {
373
- console.error(error);
374
- }
375
- });
376
- /**
377
- * Function to import remote
378
- * @async
379
- * @function
380
- * @param {ImportRemoteOptions} options - The options for importing the remote
381
- * @returns {Promise<T>} A promise that resolves with the imported module
382
- */
383
- const importRemote = (_a) => __awaiter(void 0, [_a], void 0, function* ({ url, scope, module, remoteEntryFileName = REMOTE_ENTRY_FILE, bustRemoteEntryCache = true, esm = false, }) {
384
- const remoteScope = scope;
385
- if (!window[remoteScope]) {
386
- let remoteUrl = '';
387
- if (typeof url === 'string') {
388
- remoteUrl = url;
389
- }
390
- else {
391
- remoteUrl = yield url();
392
- }
393
- const remoteUrlWithEntryFile = `${remoteUrl}/${remoteEntryFileName}`;
394
- const asyncContainer = !esm
395
- ? loadRemote(remoteUrlWithEntryFile, scope, bustRemoteEntryCache)
396
- : loadEsmRemote(remoteUrlWithEntryFile, scope);
397
- // Load the remote and initialize the share scope if it's empty
398
- yield Promise.all([asyncContainer, initSharing()]);
399
- if (!window[remoteScope]) {
400
- throw new Error(`Remote loaded successfully but ${scope} could not be found! Verify that the name is correct in the Webpack configuration!`);
401
- }
402
- // Initialize the container to get shared modules and get the module factory:
403
- const [, moduleFactory] = yield Promise.all([
404
- initContainer(window[remoteScope]),
405
- window[remoteScope].get(module === '.' || module.startsWith('./') ? module : `./${module}`),
406
- ]);
407
- return moduleFactory();
408
- }
409
- else {
410
- const moduleFactory = yield window[remoteScope].get(module === '.' || module.startsWith('./') ? module : `./${module}`);
411
- return moduleFactory();
412
- }
413
- });
414
-
415
- class Logger {
416
- static getLogger() {
417
- return this.loggerInstance;
418
- }
419
- static setLogger(logger) {
420
- this.loggerInstance = logger || console;
421
- return logger;
422
- }
423
- }
424
- Logger.loggerInstance = console;
425
-
426
- const getRuntimeRemotes = () => {
427
- try {
428
- return Object.entries(remoteVars).reduce(function (acc, item) {
429
- const [key, value] = item;
430
- // if its an object with a thenable (eagerly executing function)
431
- if (typeof value === 'object' && typeof value.then === 'function') {
432
- acc[key] = { asyncContainer: value };
433
- }
434
- // if its a function that must be called (lazily executing function)
435
- else if (typeof value === 'function') {
436
- // @ts-ignore
437
- acc[key] = { asyncContainer: value };
438
- }
439
- // if its a delegate module, skip it
440
- else if (typeof value === 'string' && value.startsWith('internal ')) {
441
- const [request, query] = value.replace('internal ', '').split('?');
442
- if (query) {
443
- const remoteSyntax = new URLSearchParams(query).get('remote');
444
- if (remoteSyntax) {
445
- const [url, global] = extractUrlAndGlobal(remoteSyntax);
446
- acc[key] = { global, url };
447
- }
448
- }
449
- }
450
- // if its just a string (global@url)
451
- else if (typeof value === 'string') {
452
- const [url, global] = extractUrlAndGlobal(value);
453
- acc[key] = { global, url };
454
- }
455
- // we dont know or currently support this type
456
- else {
457
- //@ts-ignore
458
- console.warn('remotes process', process.env.REMOTES);
459
- throw new Error(`[mf] Invalid value received for runtime_remote "${key}"`);
460
- }
461
- return acc;
462
- }, {});
463
- }
464
- catch (err) {
465
- console.warn('Unable to retrieve runtime remotes: ', err);
466
- }
467
- return {};
468
- };
469
-
470
- const importDelegatedModule = (keyOrRuntimeRemoteItem) => __awaiter(void 0, void 0, void 0, function* () {
471
- // @ts-ignore
472
- return loadScript(keyOrRuntimeRemoteItem)
473
- .then((asyncContainer) => {
474
- return asyncContainer;
475
- })
476
- .then((asyncContainer) => {
477
- // most of this is only needed because of legacy promise based implementation
478
- // can remove proxies once we remove promise based implementations
479
- if (typeof window === 'undefined') {
480
- if (!Object.hasOwnProperty.call(keyOrRuntimeRemoteItem, 'globalThis')) {
481
- return asyncContainer;
482
- }
483
- // return asyncContainer;
484
- //TODO: need to solve chunk flushing with delegated modules
485
- return {
486
- get: function (arg) {
487
- //@ts-ignore
488
- return asyncContainer.get(arg).then((f) => {
489
- const m = f();
490
- const result = {
491
- __esModule: m.__esModule,
492
- };
493
- for (const prop in m) {
494
- if (typeof m[prop] === 'function') {
495
- Object.defineProperty(result, prop, {
496
- get: function () {
497
- return function () {
498
- //@ts-ignore
499
- if (globalThis.usedChunks) {
500
- //@ts-ignore
501
- globalThis.usedChunks.add(
502
- //@ts-ignore
503
- `${keyOrRuntimeRemoteItem.global}->${arg}`);
504
- }
505
- //eslint-disable-next-line prefer-rest-params
506
- return m[prop](...arguments);
507
- };
508
- },
509
- enumerable: true,
510
- });
511
- }
512
- else {
513
- Object.defineProperty(result, prop, {
514
- get: () => {
515
- //@ts-ignore
516
- if (globalThis.usedChunks) {
517
- //@ts-ignore
518
- globalThis.usedChunks.add(
519
- //@ts-ignore
520
- `${keyOrRuntimeRemoteItem.global}->${arg}`);
521
- }
522
- return m[prop];
523
- },
524
- enumerable: true,
525
- });
526
- }
527
- }
528
- if (m.then) {
529
- return Promise.resolve(() => result);
530
- }
531
- return () => result;
532
- });
533
- },
534
- init: asyncContainer.init,
535
- };
536
- }
537
- else {
538
- return asyncContainer;
539
- }
540
- });
541
- });
542
-
543
- export { Logger, createRuntimeVariables, extractUrlAndGlobal, getContainer, getModule, getRuntimeRemotes, importDelegatedModule, importRemote, injectScript, isObjectEmpty, loadScript };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes