@module-federation/bridge-react 0.0.0-next-20250708033956 → 0.0.0-next-20250708104625

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 (40) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/data-fetch-server-middleware.d.ts +9 -0
  3. package/dist/data-fetch-server-middleware.es.js +1 -1
  4. package/dist/data-fetch-utils.cjs.js +4 -1253
  5. package/dist/data-fetch-utils.d.ts +10 -1
  6. package/dist/data-fetch-utils.es.js +11 -1260
  7. package/dist/index.cjs.js +7 -433
  8. package/dist/index.d.ts +11 -11
  9. package/dist/index.es.js +20 -447
  10. package/dist/lazy-load-component-plugin-CttAWi8N.js +500 -0
  11. package/dist/lazy-load-component-plugin-hOC-Yus_.mjs +501 -0
  12. package/dist/lazy-load-component-plugin.cjs.js +6 -0
  13. package/dist/lazy-load-component-plugin.d.ts +16 -0
  14. package/dist/lazy-load-component-plugin.es.js +6 -0
  15. package/dist/lazy-utils.d.ts +9 -0
  16. package/dist/lazy-utils.es.js +19 -19
  17. package/dist/plugin.d.ts +9 -0
  18. package/dist/prefetch-Cx6MrkdU.mjs +1330 -0
  19. package/dist/prefetch-cGDaDkgV.js +1329 -0
  20. package/dist/router-v5.d.ts +9 -0
  21. package/dist/router-v6.d.ts +9 -0
  22. package/dist/router.d.ts +9 -0
  23. package/dist/{utils-Bk8hGjjF.mjs → utils-BTYYwZcb.mjs} +31 -31
  24. package/dist/v18.d.ts +9 -0
  25. package/dist/v19.d.ts +9 -0
  26. package/package.json +11 -11
  27. package/src/index.ts +3 -1
  28. package/src/lazy/createLazyComponent.tsx +88 -74
  29. package/src/lazy/data-fetch/index.ts +1 -0
  30. package/src/lazy/data-fetch/prefetch.ts +1 -1
  31. package/src/lazy/data-fetch/runtime-plugin.ts +80 -81
  32. package/src/lazy/index.ts +6 -2
  33. package/src/plugins/lazy-load-component-plugin.ts +72 -0
  34. package/vite.config.ts +2 -2
  35. package/dist/data-fetch-runtime-plugin.cjs.js +0 -73
  36. package/dist/data-fetch-runtime-plugin.d.ts +0 -6
  37. package/dist/data-fetch-runtime-plugin.es.js +0 -74
  38. package/dist/inject-data-fetch-CAvi-gSf.js +0 -79
  39. package/dist/inject-data-fetch-errCdqBS.mjs +0 -80
  40. package/src/.eslintrc.js +0 -9
@@ -0,0 +1,500 @@
1
+ "use strict";
2
+ const prefetch = require("./prefetch-cGDaDkgV.js");
3
+ const lazyUtils = require("./utils-iEVlDmyk.js");
4
+ const React = require("react");
5
+ const autoFetchData = () => {
6
+ lazyUtils.initDataFetchMap();
7
+ prefetch.injectDataFetch();
8
+ return {
9
+ name: "auto-fetch-data-plugin",
10
+ afterLoadSnapshot(args) {
11
+ const { id, moduleInfo, remoteSnapshot, host } = args;
12
+ if (typeof id === "string" && lazyUtils.isDataLoaderExpose(id)) {
13
+ return args;
14
+ }
15
+ if (!remoteSnapshot || !id || !("modules" in remoteSnapshot)) {
16
+ return args;
17
+ }
18
+ const { name, alias } = moduleInfo;
19
+ const dataFetchInfo = lazyUtils.getDataFetchInfo({
20
+ name,
21
+ alias,
22
+ id,
23
+ remoteSnapshot
24
+ });
25
+ if (!dataFetchInfo) {
26
+ return args;
27
+ }
28
+ const { dataFetchId, dataFetchName } = dataFetchInfo;
29
+ const dataFetchMapKey = lazyUtils.getDataFetchMapKey(dataFetchInfo, {
30
+ name: host.name,
31
+ version: host.options.version
32
+ });
33
+ lazyUtils.logger.debug(
34
+ "======= auto fetch plugin dataFetchMapKey: ",
35
+ dataFetchMapKey
36
+ );
37
+ if (!dataFetchMapKey) {
38
+ return args;
39
+ }
40
+ const dataFetchItem = lazyUtils.getDataFetchItem(dataFetchMapKey);
41
+ if (dataFetchItem) {
42
+ return args;
43
+ }
44
+ const dataFetchMap = lazyUtils.getDataFetchMap();
45
+ const hasSSRAsset = Boolean(remoteSnapshot.ssrRemoteEntry);
46
+ const hasDataFetchClient = Boolean(
47
+ remoteSnapshot.modules.find(
48
+ (module2) => module2.moduleName === `${dataFetchName}${lazyUtils.DATA_FETCH_CLIENT_SUFFIX}`
49
+ )
50
+ );
51
+ const downgradeType = hasDataFetchClient ? lazyUtils.MF_DATA_FETCH_TYPE.FETCH_CLIENT : hasSSRAsset ? lazyUtils.MF_DATA_FETCH_TYPE.FETCH_SERVER : lazyUtils.MF_DATA_FETCH_TYPE.FETCH_CLIENT;
52
+ let finalDataFetchId = dataFetchId;
53
+ if (!lazyUtils.isServerEnv()) {
54
+ finalDataFetchId = downgradeType === lazyUtils.MF_DATA_FETCH_TYPE.FETCH_CLIENT ? hasDataFetchClient ? `${dataFetchId}${lazyUtils.DATA_FETCH_CLIENT_SUFFIX}` : dataFetchId : dataFetchId;
55
+ }
56
+ const getDataFetchGetter = () => lazyUtils.loadDataFetchModule(host, finalDataFetchId);
57
+ const dataFetchFnItem = [
58
+ getDataFetchGetter,
59
+ downgradeType
60
+ ];
61
+ if (typeof window === "undefined" || lazyUtils.isCSROnly()) {
62
+ dataFetchFnItem.push(getDataFetchGetter());
63
+ }
64
+ dataFetchMap[dataFetchMapKey] = [
65
+ dataFetchFnItem,
66
+ void 0,
67
+ lazyUtils.MF_DATA_FETCH_STATUS.AWAIT
68
+ ];
69
+ return args;
70
+ }
71
+ };
72
+ };
73
+ function isPromise(obj) {
74
+ return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
75
+ }
76
+ const AWAIT_ERROR_PREFIX = "<Await /> caught the following error during render: ";
77
+ const transformError = (err) => {
78
+ const errMsg = err instanceof Error ? err.message : err;
79
+ const originalMsg = errMsg.replace(AWAIT_ERROR_PREFIX, "");
80
+ const dataFetchMapKey = lazyUtils.getDataFetchIdWithErrorMsgs(originalMsg);
81
+ if (originalMsg.indexOf(lazyUtils.DATA_FETCH_ERROR_PREFIX) === 0) {
82
+ return {
83
+ error: new Error(
84
+ originalMsg.replace(lazyUtils.DATA_FETCH_ERROR_PREFIX, "").replace(lazyUtils.wrapDataFetchId(dataFetchMapKey), "")
85
+ ),
86
+ errorType: lazyUtils.ERROR_TYPE.DATA_FETCH,
87
+ dataFetchMapKey
88
+ };
89
+ }
90
+ if (originalMsg.indexOf(lazyUtils.LOAD_REMOTE_ERROR_PREFIX) === 0) {
91
+ return {
92
+ error: new Error(
93
+ originalMsg.replace(lazyUtils.LOAD_REMOTE_ERROR_PREFIX, "").replace(lazyUtils.wrapDataFetchId(dataFetchMapKey), "")
94
+ ),
95
+ errorType: lazyUtils.ERROR_TYPE.LOAD_REMOTE,
96
+ dataFetchMapKey
97
+ };
98
+ }
99
+ return {
100
+ error: new Error(originalMsg.replace(lazyUtils.wrapDataFetchId(dataFetchMapKey), "")),
101
+ errorType: lazyUtils.ERROR_TYPE.UNKNOWN,
102
+ dataFetchMapKey
103
+ };
104
+ };
105
+ const DefaultLoading = /* @__PURE__ */ React.createElement(React.Fragment, null);
106
+ const DefaultErrorElement = (_data) => /* @__PURE__ */ React.createElement("div", null, "Error");
107
+ function AwaitDataFetch({
108
+ resolve,
109
+ loading = DefaultLoading,
110
+ errorElement = DefaultErrorElement,
111
+ children,
112
+ params,
113
+ delayLoading
114
+ }) {
115
+ const dataRef = React.useRef();
116
+ const data = dataRef.current || resolve;
117
+ const getData = isPromise(data) ? fetchData(data, dataRef) : () => data;
118
+ return /* @__PURE__ */ React.createElement(
119
+ AwaitSuspense,
120
+ {
121
+ params,
122
+ loading,
123
+ errorElement,
124
+ delayLoading,
125
+ resolve: getData
126
+ },
127
+ children
128
+ );
129
+ }
130
+ const DelayedLoading = ({
131
+ delayLoading,
132
+ children
133
+ }) => {
134
+ const [show, setShow] = React.useState(false);
135
+ const timerSet = React.useRef(false);
136
+ if (!delayLoading) {
137
+ return children;
138
+ }
139
+ if (typeof window !== "undefined" && !show && !timerSet.current) {
140
+ timerSet.current = true;
141
+ setTimeout(() => {
142
+ setShow(true);
143
+ }, delayLoading);
144
+ }
145
+ return show ? children : null;
146
+ };
147
+ function AwaitSuspense({
148
+ resolve,
149
+ children,
150
+ loading = DefaultLoading,
151
+ errorElement = DefaultErrorElement,
152
+ delayLoading
153
+ }) {
154
+ return /* @__PURE__ */ React.createElement(
155
+ React.Suspense,
156
+ {
157
+ fallback: /* @__PURE__ */ React.createElement(DelayedLoading, { delayLoading }, loading)
158
+ },
159
+ /* @__PURE__ */ React.createElement(ResolveAwait, { resolve, errorElement }, children)
160
+ );
161
+ }
162
+ function ResolveAwait({
163
+ children,
164
+ resolve,
165
+ errorElement,
166
+ params
167
+ }) {
168
+ const data = resolve();
169
+ lazyUtils.logger.debug("resolve data: ", data);
170
+ if (typeof data === "string" && data.indexOf(AWAIT_ERROR_PREFIX) === 0) {
171
+ const transformedError = transformError(data);
172
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, typeof errorElement === "function" ? /* @__PURE__ */ React.createElement(React.Fragment, null, globalThis.FEDERATION_SSR && /* @__PURE__ */ React.createElement(
173
+ "script",
174
+ {
175
+ suppressHydrationWarning: true,
176
+ dangerouslySetInnerHTML: {
177
+ __html: String.raw`
178
+ globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'] = globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'] || []
179
+ globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'].push([${transformedError.dataFetchMapKey ? `'${transformedError.dataFetchMapKey}'` : ""},${params ? JSON.stringify(params) : null},true]);`
180
+ }
181
+ }
182
+ ), errorElement(transformedError)) : errorElement);
183
+ }
184
+ const toRender = typeof children === "function" ? children(data) : children;
185
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, toRender);
186
+ }
187
+ const fetchData = (promise, ref) => {
188
+ let data;
189
+ let status = "pending";
190
+ const suspender = promise.then((res) => {
191
+ status = "success";
192
+ data = res;
193
+ ref.current = res;
194
+ }).catch((e) => {
195
+ status = "success";
196
+ console.warn(e);
197
+ data = AWAIT_ERROR_PREFIX + e;
198
+ });
199
+ return () => {
200
+ if (status === "pending") {
201
+ throw suspender;
202
+ }
203
+ return data;
204
+ };
205
+ };
206
+ function getTargetModuleInfo(id, instance) {
207
+ if (!instance) {
208
+ return;
209
+ }
210
+ const loadedRemoteInfo = lazyUtils.getLoadedRemoteInfos(id, instance);
211
+ if (!loadedRemoteInfo) {
212
+ return;
213
+ }
214
+ const { snapshot } = loadedRemoteInfo;
215
+ if (!snapshot) {
216
+ return;
217
+ }
218
+ const publicPath = "publicPath" in snapshot ? snapshot.publicPath : "getPublicPath" in snapshot ? new Function(snapshot.getPublicPath)() : "";
219
+ if (!publicPath) {
220
+ return;
221
+ }
222
+ const modules = "modules" in snapshot ? snapshot.modules : [];
223
+ const targetModule = modules.find(
224
+ (m) => m.modulePath === loadedRemoteInfo.expose
225
+ );
226
+ if (!targetModule) {
227
+ return;
228
+ }
229
+ const remoteEntry = "remoteEntry" in snapshot ? snapshot.remoteEntry : "";
230
+ if (!remoteEntry) {
231
+ return;
232
+ }
233
+ return {
234
+ module: targetModule,
235
+ publicPath,
236
+ remoteEntry
237
+ };
238
+ }
239
+ function collectSSRAssets(options) {
240
+ const {
241
+ id,
242
+ injectLink = true,
243
+ injectScript = false
244
+ } = typeof options === "string" ? { id: options } : options;
245
+ const links = [];
246
+ const scripts = [];
247
+ const instance = options.instance;
248
+ if (!instance || !injectLink && !injectScript) {
249
+ return [...scripts, ...links];
250
+ }
251
+ const moduleAndPublicPath = getTargetModuleInfo(id, instance);
252
+ if (!moduleAndPublicPath) {
253
+ return [...scripts, ...links];
254
+ }
255
+ const { module: targetModule, publicPath, remoteEntry } = moduleAndPublicPath;
256
+ if (injectLink) {
257
+ [...targetModule.assets.css.sync, ...targetModule.assets.css.async].sort().forEach((file, index) => {
258
+ links.push(
259
+ /* @__PURE__ */ React.createElement(
260
+ "link",
261
+ {
262
+ key: `${file.split(".")[0]}_${index}`,
263
+ href: `${publicPath}${file}`,
264
+ rel: "stylesheet",
265
+ type: "text/css"
266
+ }
267
+ )
268
+ );
269
+ });
270
+ }
271
+ if (injectScript) {
272
+ scripts.push(
273
+ /* @__PURE__ */ React.createElement(
274
+ "script",
275
+ {
276
+ async: true,
277
+ key: remoteEntry.split(".")[0],
278
+ src: `${publicPath}${remoteEntry}`,
279
+ crossOrigin: "anonymous"
280
+ }
281
+ )
282
+ );
283
+ [...targetModule.assets.js.sync].sort().forEach((file, index) => {
284
+ scripts.push(
285
+ /* @__PURE__ */ React.createElement(
286
+ "script",
287
+ {
288
+ key: `${file.split(".")[0]}_${index}`,
289
+ async: true,
290
+ src: `${publicPath}${file}`,
291
+ crossOrigin: "anonymous"
292
+ }
293
+ )
294
+ );
295
+ });
296
+ }
297
+ return [...scripts, ...links];
298
+ }
299
+ function getServerNeedRemoteInfo(loadedRemoteInfo, id) {
300
+ var _a;
301
+ if (
302
+ // noSSR ||
303
+ typeof window !== "undefined" && window.location.href !== window[lazyUtils.FS_HREF]
304
+ ) {
305
+ if (!(loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.version)) {
306
+ throw new Error(`${loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.name} version is empty`);
307
+ }
308
+ const { snapshot } = loadedRemoteInfo;
309
+ if (!snapshot) {
310
+ throw new Error(`${loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.name} snapshot is empty`);
311
+ }
312
+ const dataFetchItem = lazyUtils.getDataFetchItem(id);
313
+ const isFetchServer = ((_a = dataFetchItem == null ? void 0 : dataFetchItem[0]) == null ? void 0 : _a[1]) === lazyUtils.MF_DATA_FETCH_TYPE.FETCH_SERVER;
314
+ if (isFetchServer && (!("ssrPublicPath" in snapshot) || !snapshot.ssrPublicPath)) {
315
+ throw new Error(
316
+ `ssrPublicPath is required while fetching ${loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.name} data in SSR project!`
317
+ );
318
+ }
319
+ if (isFetchServer && (!("ssrRemoteEntry" in snapshot) || !snapshot.ssrRemoteEntry)) {
320
+ throw new Error(
321
+ `ssrRemoteEntry is required while loading ${loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.name} data loader in SSR project!`
322
+ );
323
+ }
324
+ return {
325
+ name: loadedRemoteInfo.name,
326
+ version: loadedRemoteInfo.version,
327
+ ssrPublicPath: "ssrPublicPath" in snapshot ? snapshot.ssrPublicPath || "" : "",
328
+ ssrRemoteEntry: "ssrRemoteEntry" in snapshot ? snapshot.ssrRemoteEntry || "" : "",
329
+ globalName: loadedRemoteInfo.entryGlobalName
330
+ };
331
+ }
332
+ return void 0;
333
+ }
334
+ function createLazyComponent(options) {
335
+ const { instance, cacheData } = options;
336
+ if (!instance) {
337
+ throw new Error("instance is required for createLazyComponent!");
338
+ }
339
+ let dataCache = null;
340
+ const exportName = (options == null ? void 0 : options.export) || "default";
341
+ const callLoader = async () => {
342
+ lazyUtils.logger.debug("callLoader start", Date.now());
343
+ const m = await options.loader();
344
+ lazyUtils.logger.debug("callLoader end", Date.now());
345
+ if (!m) {
346
+ throw new Error("load remote failed");
347
+ }
348
+ return m;
349
+ };
350
+ const getData = async () => {
351
+ let loadedRemoteInfo;
352
+ let moduleId;
353
+ try {
354
+ const m = await callLoader();
355
+ moduleId = m && m[Symbol.for("mf_module_id")];
356
+ if (!moduleId) {
357
+ throw new Error("moduleId is empty");
358
+ }
359
+ loadedRemoteInfo = lazyUtils.getLoadedRemoteInfos(moduleId, instance);
360
+ if (!loadedRemoteInfo) {
361
+ throw new Error(`can not find loaded remote('${moduleId}') info!`);
362
+ }
363
+ } catch (e) {
364
+ const errMsg = `${lazyUtils.LOAD_REMOTE_ERROR_PREFIX}${e}`;
365
+ lazyUtils.logger.debug(e);
366
+ throw new Error(errMsg);
367
+ }
368
+ let dataFetchMapKey;
369
+ try {
370
+ dataFetchMapKey = lazyUtils.getDataFetchMapKey(
371
+ lazyUtils.getDataFetchInfo({
372
+ name: loadedRemoteInfo.name,
373
+ alias: loadedRemoteInfo.alias,
374
+ id: moduleId,
375
+ remoteSnapshot: loadedRemoteInfo.snapshot
376
+ }),
377
+ { name: instance.name, version: instance.options.version }
378
+ );
379
+ lazyUtils.logger.debug("getData dataFetchMapKey: ", dataFetchMapKey);
380
+ if (!dataFetchMapKey) {
381
+ return;
382
+ }
383
+ const data = await lazyUtils.fetchData(
384
+ dataFetchMapKey,
385
+ {
386
+ ...options.dataFetchParams,
387
+ isDowngrade: false
388
+ },
389
+ // getServerNeedRemoteInfo(loadedRemoteInfo, dataFetchMapKey, noSSR),
390
+ getServerNeedRemoteInfo(loadedRemoteInfo, dataFetchMapKey)
391
+ );
392
+ lazyUtils.setDataFetchItemLoadedStatus(dataFetchMapKey);
393
+ lazyUtils.logger.debug("get data res: \n", data);
394
+ dataCache = data;
395
+ return data;
396
+ } catch (err) {
397
+ const errMsg = `${lazyUtils.DATA_FETCH_ERROR_PREFIX}${lazyUtils.wrapDataFetchId(dataFetchMapKey)}${err}`;
398
+ lazyUtils.logger.debug(errMsg);
399
+ throw new Error(errMsg);
400
+ }
401
+ };
402
+ const LazyComponent = React.lazy(async () => {
403
+ const m = await callLoader();
404
+ const moduleId = m && m[Symbol.for("mf_module_id")];
405
+ const loadedRemoteInfo = lazyUtils.getLoadedRemoteInfos(moduleId, instance);
406
+ loadedRemoteInfo == null ? void 0 : loadedRemoteInfo.snapshot;
407
+ const dataFetchMapKey = loadedRemoteInfo ? lazyUtils.getDataFetchMapKey(
408
+ lazyUtils.getDataFetchInfo({
409
+ name: loadedRemoteInfo.name,
410
+ alias: loadedRemoteInfo.alias,
411
+ id: moduleId,
412
+ remoteSnapshot: loadedRemoteInfo.snapshot
413
+ }),
414
+ { name: instance.name, version: instance == null ? void 0 : instance.options.version }
415
+ ) : void 0;
416
+ lazyUtils.logger.debug("LazyComponent dataFetchMapKey: ", dataFetchMapKey);
417
+ const assets = collectSSRAssets({
418
+ id: moduleId,
419
+ instance
420
+ });
421
+ const Com = m[exportName];
422
+ if (exportName in m && typeof Com === "function") {
423
+ return {
424
+ default: (props) => /* @__PURE__ */ React.createElement(React.Fragment, null, globalThis.FEDERATION_SSR && dataFetchMapKey && /* @__PURE__ */ React.createElement(
425
+ "script",
426
+ {
427
+ suppressHydrationWarning: true,
428
+ dangerouslySetInnerHTML: {
429
+ __html: String.raw`
430
+ globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'] = globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'] || [];
431
+ globalThis['${lazyUtils.DATA_FETCH_FUNCTION}'].push(['${dataFetchMapKey}',${JSON.stringify(props.mfData)}]);
432
+ `
433
+ }
434
+ }
435
+ ), globalThis.FEDERATION_SSR && assets, /* @__PURE__ */ React.createElement(Com, { ...props }))
436
+ };
437
+ } else {
438
+ throw Error(
439
+ `Make sure that ${moduleId} has the correct export when export is ${String(
440
+ exportName
441
+ )}`
442
+ );
443
+ }
444
+ });
445
+ return (props) => {
446
+ const { key, ...args } = props;
447
+ if (cacheData && dataCache) {
448
+ return /* @__PURE__ */ React.createElement(LazyComponent, { ...args, mfData: dataCache });
449
+ }
450
+ return /* @__PURE__ */ React.createElement(
451
+ AwaitDataFetch,
452
+ {
453
+ resolve: getData(),
454
+ loading: options.loading,
455
+ delayLoading: options.delayLoading,
456
+ errorElement: options.fallback
457
+ },
458
+ (data) => /* @__PURE__ */ React.createElement(LazyComponent, { ...args, mfData: data })
459
+ );
460
+ };
461
+ }
462
+ function lazyLoadComponentPlugin() {
463
+ return {
464
+ name: "lazy-load-component-plugin",
465
+ apply(instance) {
466
+ instance.registerPlugins([autoFetchData()]);
467
+ instance.createLazyComponent = (options) => {
468
+ return createLazyComponent({
469
+ instance,
470
+ ...options
471
+ });
472
+ };
473
+ instance.prefetch = (options) => {
474
+ return prefetch.prefetch({
475
+ instance,
476
+ ...options
477
+ });
478
+ };
479
+ instance.wrapNoSSR = (fn) => {
480
+ return (options) => {
481
+ return fn({
482
+ instance,
483
+ noSSR: true,
484
+ ...options
485
+ });
486
+ };
487
+ };
488
+ instance.collectSSRAssets = (options) => {
489
+ return collectSSRAssets({
490
+ instance,
491
+ ...options
492
+ });
493
+ };
494
+ }
495
+ };
496
+ }
497
+ exports.autoFetchData = autoFetchData;
498
+ exports.collectSSRAssets = collectSSRAssets;
499
+ exports.createLazyComponent = createLazyComponent;
500
+ exports.lazyLoadComponentPlugin = lazyLoadComponentPlugin;