@module-federation/enhanced 0.5.2 → 0.6.1

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 (79) hide show
  1. package/dist/package.json +3 -2
  2. package/dist/src/declarations/plugins/container/WebpackError.d.ts +2 -1
  3. package/dist/src/lib/container/ContainerEntryDependency.d.ts +20 -22
  4. package/dist/src/lib/container/ContainerEntryModule.d.ts +77 -70
  5. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +10 -14
  6. package/dist/src/lib/container/ContainerExposedDependency.d.ts +25 -18
  7. package/dist/src/lib/container/ContainerPlugin.js +4 -12
  8. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  9. package/dist/src/lib/container/ContainerReferencePlugin.js +1 -3
  10. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  11. package/dist/src/lib/container/FallbackDependency.d.ts +20 -14
  12. package/dist/src/lib/container/FallbackItemDependency.d.ts +10 -3
  13. package/dist/src/lib/container/FallbackModule.d.ts +70 -52
  14. package/dist/src/lib/container/FallbackModuleFactory.d.ts +10 -10
  15. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +9 -4
  16. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +165 -30
  17. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
  18. package/dist/src/lib/container/ModuleFederationPlugin.js +6 -9
  19. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  20. package/dist/src/lib/container/RemoteModule.d.ts +73 -88
  21. package/dist/src/lib/container/RemoteModule.js +0 -1
  22. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  23. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +7 -10
  24. package/dist/src/lib/container/RemoteRuntimeModule.js +10 -0
  25. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
  26. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +9 -3
  27. package/dist/src/lib/container/options.d.ts +3 -12
  28. package/dist/src/lib/container/options.js +6 -7
  29. package/dist/src/lib/container/options.js.map +1 -1
  30. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +21 -0
  31. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +215 -0
  32. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +1 -0
  33. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +9 -0
  34. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +81 -0
  35. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -0
  36. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +7 -0
  37. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +38 -0
  38. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -0
  39. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +2 -2
  40. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
  41. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +2 -2
  42. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +105 -39
  43. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  44. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +10 -3
  45. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +104 -97
  46. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +6 -28
  47. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +1 -3
  48. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  49. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +11 -29
  50. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +7 -0
  51. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  52. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +11 -3
  53. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +37 -35
  54. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +83 -65
  55. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +10 -17
  56. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +19 -37
  57. package/dist/src/lib/sharing/ProvideSharedPlugin.js +1 -3
  58. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  59. package/dist/src/lib/sharing/SharePlugin.d.ts +13 -39
  60. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +7 -12
  61. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +8 -12
  62. package/dist/src/lib/sharing/utils.d.ts +29 -21
  63. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -0
  64. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +94 -0
  65. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -0
  66. package/dist/src/lib/startup/StartupHelpers.d.ts +6 -0
  67. package/dist/src/lib/startup/StartupHelpers.js +190 -0
  68. package/dist/src/lib/startup/StartupHelpers.js.map +1 -0
  69. package/dist/src/webpack.js.map +1 -1
  70. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +5 -2
  71. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +7 -3
  72. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  73. package/package.json +10 -9
  74. package/dist/src/declarations/plugins/container/Module.d.ts +0 -138
  75. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +0 -4001
  76. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
  77. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +0 -678
  78. package/dist/src/schemas/container/ModuleFederationPlugin.js +0 -774
  79. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
@@ -1,678 +0,0 @@
1
- declare const _default: {
2
- definitions: {
3
- AmdContainer: {
4
- description: string;
5
- type: string;
6
- minLength: number;
7
- };
8
- AuxiliaryComment: {
9
- description: string;
10
- anyOf: ({
11
- description: string;
12
- type: string;
13
- $ref?: undefined;
14
- } | {
15
- $ref: string;
16
- description?: undefined;
17
- type?: undefined;
18
- })[];
19
- };
20
- EntryRuntime: {
21
- description: string;
22
- anyOf: ({
23
- enum: boolean[];
24
- type?: undefined;
25
- minLength?: undefined;
26
- } | {
27
- type: string;
28
- minLength: number;
29
- enum?: undefined;
30
- })[];
31
- };
32
- Exposes: {
33
- description: string;
34
- anyOf: ({
35
- type: string;
36
- items: {
37
- description: string;
38
- anyOf: {
39
- $ref: string;
40
- }[];
41
- };
42
- $ref?: undefined;
43
- } | {
44
- $ref: string;
45
- type?: undefined;
46
- items?: undefined;
47
- })[];
48
- };
49
- ExposesConfig: {
50
- description: string;
51
- type: string;
52
- additionalProperties: boolean;
53
- properties: {
54
- import: {
55
- description: string;
56
- anyOf: {
57
- $ref: string;
58
- }[];
59
- };
60
- name: {
61
- description: string;
62
- type: string;
63
- };
64
- };
65
- required: string[];
66
- };
67
- ExposesItem: {
68
- description: string;
69
- type: string;
70
- minLength: number;
71
- };
72
- ExposesItems: {
73
- description: string;
74
- type: string;
75
- items: {
76
- $ref: string;
77
- };
78
- };
79
- ExposesObject: {
80
- description: string;
81
- type: string;
82
- additionalProperties: {
83
- description: string;
84
- anyOf: {
85
- $ref: string;
86
- }[];
87
- };
88
- };
89
- ExternalsType: {
90
- description: string;
91
- enum: string[];
92
- };
93
- LibraryCustomUmdCommentObject: {
94
- description: string;
95
- type: string;
96
- additionalProperties: boolean;
97
- properties: {
98
- amd: {
99
- description: string;
100
- type: string;
101
- };
102
- commonjs: {
103
- description: string;
104
- type: string;
105
- };
106
- commonjs2: {
107
- description: string;
108
- type: string;
109
- };
110
- root: {
111
- description: string;
112
- type: string;
113
- };
114
- };
115
- };
116
- LibraryCustomUmdObject: {
117
- description: string;
118
- type: string;
119
- additionalProperties: boolean;
120
- properties: {
121
- amd: {
122
- description: string;
123
- type: string;
124
- minLength: number;
125
- };
126
- commonjs: {
127
- description: string;
128
- type: string;
129
- minLength: number;
130
- };
131
- root: {
132
- description: string;
133
- anyOf: ({
134
- type: string;
135
- items: {
136
- description: string;
137
- type: string;
138
- minLength: number;
139
- };
140
- minLength?: undefined;
141
- } | {
142
- type: string;
143
- minLength: number;
144
- items?: undefined;
145
- })[];
146
- };
147
- };
148
- };
149
- LibraryExport: {
150
- description: string;
151
- anyOf: ({
152
- type: string;
153
- items: {
154
- description: string;
155
- type: string;
156
- minLength: number;
157
- };
158
- minLength?: undefined;
159
- } | {
160
- type: string;
161
- minLength: number;
162
- items?: undefined;
163
- })[];
164
- };
165
- LibraryName: {
166
- description: string;
167
- anyOf: ({
168
- type: string;
169
- items: {
170
- description: string;
171
- type: string;
172
- minLength: number;
173
- };
174
- minItems: number;
175
- minLength?: undefined;
176
- $ref?: undefined;
177
- } | {
178
- type: string;
179
- minLength: number;
180
- items?: undefined;
181
- minItems?: undefined;
182
- $ref?: undefined;
183
- } | {
184
- $ref: string;
185
- type?: undefined;
186
- items?: undefined;
187
- minItems?: undefined;
188
- minLength?: undefined;
189
- })[];
190
- };
191
- LibraryOptions: {
192
- description: string;
193
- type: string;
194
- additionalProperties: boolean;
195
- properties: {
196
- amdContainer: {
197
- $ref: string;
198
- };
199
- auxiliaryComment: {
200
- $ref: string;
201
- };
202
- export: {
203
- $ref: string;
204
- };
205
- name: {
206
- $ref: string;
207
- };
208
- type: {
209
- $ref: string;
210
- };
211
- umdNamedDefine: {
212
- $ref: string;
213
- };
214
- };
215
- required: string[];
216
- };
217
- LibraryType: {
218
- description: string;
219
- anyOf: ({
220
- enum: string[];
221
- type?: undefined;
222
- } | {
223
- type: string;
224
- enum?: undefined;
225
- })[];
226
- };
227
- Remotes: {
228
- description: string;
229
- anyOf: ({
230
- type: string;
231
- items: {
232
- description: string;
233
- anyOf: {
234
- $ref: string;
235
- }[];
236
- };
237
- $ref?: undefined;
238
- } | {
239
- $ref: string;
240
- type?: undefined;
241
- items?: undefined;
242
- })[];
243
- };
244
- RemotesConfig: {
245
- description: string;
246
- type: string;
247
- additionalProperties: boolean;
248
- properties: {
249
- external: {
250
- description: string;
251
- anyOf: {
252
- $ref: string;
253
- }[];
254
- };
255
- shareScope: {
256
- description: string;
257
- type: string;
258
- minLength: number;
259
- };
260
- };
261
- required: string[];
262
- };
263
- RemotesItem: {
264
- description: string;
265
- type: string;
266
- minLength: number;
267
- };
268
- RemotesItems: {
269
- description: string;
270
- type: string;
271
- items: {
272
- $ref: string;
273
- };
274
- };
275
- RemotesObject: {
276
- description: string;
277
- type: string;
278
- additionalProperties: {
279
- description: string;
280
- anyOf: {
281
- $ref: string;
282
- }[];
283
- };
284
- };
285
- ShareStrategy: {
286
- description: string;
287
- enum: string[];
288
- };
289
- Shared: {
290
- description: string;
291
- anyOf: ({
292
- type: string;
293
- items: {
294
- description: string;
295
- anyOf: {
296
- $ref: string;
297
- }[];
298
- };
299
- $ref?: undefined;
300
- } | {
301
- $ref: string;
302
- type?: undefined;
303
- items?: undefined;
304
- })[];
305
- };
306
- SharedConfig: {
307
- description: string;
308
- type: string;
309
- additionalProperties: boolean;
310
- properties: {
311
- eager: {
312
- description: string;
313
- type: string;
314
- };
315
- import: {
316
- description: string;
317
- anyOf: ({
318
- description: string;
319
- enum: boolean[];
320
- $ref?: undefined;
321
- } | {
322
- $ref: string;
323
- description?: undefined;
324
- enum?: undefined;
325
- })[];
326
- };
327
- packageName: {
328
- description: string;
329
- type: string;
330
- minLength: number;
331
- };
332
- shareStrategy: {
333
- $ref: string;
334
- };
335
- requiredVersion: {
336
- description: string;
337
- anyOf: ({
338
- description: string;
339
- enum: boolean[];
340
- type?: undefined;
341
- } | {
342
- description: string;
343
- type: string;
344
- enum?: undefined;
345
- })[];
346
- };
347
- shareKey: {
348
- description: string;
349
- type: string;
350
- minLength: number;
351
- };
352
- shareScope: {
353
- description: string;
354
- type: string;
355
- minLength: number;
356
- };
357
- singleton: {
358
- description: string;
359
- type: string;
360
- };
361
- strictVersion: {
362
- description: string;
363
- type: string;
364
- };
365
- version: {
366
- description: string;
367
- anyOf: ({
368
- description: string;
369
- enum: boolean[];
370
- type?: undefined;
371
- } | {
372
- description: string;
373
- type: string;
374
- enum?: undefined;
375
- })[];
376
- };
377
- };
378
- };
379
- SharedItem: {
380
- description: string;
381
- type: string;
382
- minLength: number;
383
- };
384
- SharedObject: {
385
- description: string;
386
- type: string;
387
- additionalProperties: {
388
- description: string;
389
- anyOf: {
390
- $ref: string;
391
- }[];
392
- };
393
- };
394
- UmdNamedDefine: {
395
- description: string;
396
- type: string;
397
- };
398
- Manifest: {
399
- description: string;
400
- type: string;
401
- properties: {
402
- filePath: {
403
- description: string;
404
- type: string;
405
- };
406
- disableAssetsAnalyze: {
407
- description: string;
408
- type: string;
409
- };
410
- };
411
- };
412
- DtsRemoteOptions: {
413
- description: string;
414
- type: string;
415
- properties: {
416
- tsConfigPath: {
417
- description: string;
418
- type: string;
419
- };
420
- typesFolder: {
421
- description: string;
422
- type: string;
423
- };
424
- compiledTypesFolder: {
425
- description: string;
426
- type: string;
427
- };
428
- deleteTypesFolder: {
429
- description: string;
430
- type: string;
431
- };
432
- additionalFilesToCompile: {
433
- description: string;
434
- type: string;
435
- items: {
436
- type: string;
437
- };
438
- };
439
- compileInChildProcess: {
440
- description: string;
441
- type: string;
442
- };
443
- compilerInstance: {
444
- description: string;
445
- enum: string[];
446
- };
447
- generateAPITypes: {
448
- description: string;
449
- type: string;
450
- };
451
- abortOnError: {
452
- description: string;
453
- type: string;
454
- };
455
- };
456
- };
457
- DtsHostOptions: {
458
- description: string;
459
- type: string;
460
- properties: {
461
- typesFolder: {
462
- description: string;
463
- type: string;
464
- };
465
- remoteTypesFolder: {
466
- description: string;
467
- type: string;
468
- };
469
- deleteTypesFolder: {
470
- description: string;
471
- type: string;
472
- };
473
- abortOnError: {
474
- description: string;
475
- type: string;
476
- };
477
- maxRetries: {
478
- description: string;
479
- type: string;
480
- minimum: number;
481
- };
482
- runtimePkgs: {
483
- description: string;
484
- type: string;
485
- items: {
486
- description: string;
487
- type: string;
488
- minLength: number;
489
- };
490
- };
491
- };
492
- };
493
- Dts: {
494
- description: string;
495
- type: string;
496
- properties: {
497
- generateTypes: {
498
- description: string;
499
- ref: string;
500
- };
501
- consumeTypes: {
502
- description: string;
503
- ref: string;
504
- };
505
- extraOptions: {
506
- description: string;
507
- type: string;
508
- additionalProperties: boolean;
509
- };
510
- tsConfigPath: {
511
- description: string;
512
- type: string;
513
- };
514
- implementation: {
515
- description: string;
516
- type: string;
517
- minLength: number;
518
- };
519
- };
520
- additionalProperties: boolean;
521
- };
522
- Dev: {
523
- description: string;
524
- type: string;
525
- properties: {
526
- disableLiveReload: {
527
- description: string;
528
- type: string;
529
- };
530
- disableHotTypesReload: {
531
- description: string;
532
- type: string;
533
- };
534
- };
535
- };
536
- AsyncBoundaryOptions: {
537
- description: string;
538
- type: string;
539
- properties: {
540
- eager: {
541
- description: string;
542
- anyOf: ({
543
- instanceof: string;
544
- tsType: string;
545
- type?: undefined;
546
- } | {
547
- type: string;
548
- instanceof?: undefined;
549
- tsType?: undefined;
550
- })[];
551
- };
552
- excludeChunk: {
553
- description: string;
554
- instanceof: string;
555
- tsType: string;
556
- };
557
- };
558
- };
559
- };
560
- title: string;
561
- type: string;
562
- additionalProperties: boolean;
563
- properties: {
564
- exposes: {
565
- $ref: string;
566
- };
567
- filename: {
568
- description: string;
569
- type: string;
570
- absolutePath: boolean;
571
- };
572
- implementation: {
573
- description: string;
574
- type: string;
575
- minLength: number;
576
- };
577
- library: {
578
- $ref: string;
579
- };
580
- name: {
581
- description: string;
582
- type: string;
583
- };
584
- remoteType: {
585
- description: string;
586
- oneOf: {
587
- $ref: string;
588
- }[];
589
- };
590
- remotes: {
591
- $ref: string;
592
- };
593
- runtime: {
594
- $ref: string;
595
- };
596
- runtimePlugins: {
597
- type: string;
598
- items: {
599
- anyOf: ({
600
- type: string;
601
- minLength: number;
602
- description: string;
603
- required?: undefined;
604
- properties?: undefined;
605
- additionalProperties?: undefined;
606
- } | {
607
- type: string;
608
- required: string[];
609
- properties: {
610
- import: {
611
- type: string;
612
- minLength: number;
613
- description: string;
614
- };
615
- async: {
616
- type: string;
617
- };
618
- };
619
- additionalProperties: boolean;
620
- minLength?: undefined;
621
- description?: undefined;
622
- })[];
623
- };
624
- };
625
- manifest: {
626
- description: string;
627
- anyOf: ({
628
- $ref: string;
629
- type?: undefined;
630
- } | {
631
- type: string;
632
- $ref?: undefined;
633
- })[];
634
- };
635
- shareScope: {
636
- description: string;
637
- type: string;
638
- minLength: number;
639
- };
640
- shareStrategy: {
641
- $ref: string;
642
- };
643
- shared: {
644
- $ref: string;
645
- };
646
- dts: {
647
- description: string;
648
- anyOf: ({
649
- $ref: string;
650
- type?: undefined;
651
- } | {
652
- type: string;
653
- $ref?: undefined;
654
- })[];
655
- };
656
- dev: {
657
- description: string;
658
- anyOf: ({
659
- $ref: string;
660
- type?: undefined;
661
- } | {
662
- type: string;
663
- $ref?: undefined;
664
- })[];
665
- };
666
- async: {
667
- description: string;
668
- anyOf: ({
669
- $ref: string;
670
- type?: undefined;
671
- } | {
672
- type: string;
673
- $ref?: undefined;
674
- })[];
675
- };
676
- };
677
- };
678
- export default _default;