@module-federation/enhanced 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/CHANGELOG.md +2357 -0
  2. package/dist/README.md +213 -0
  3. package/dist/rstestmigrate.md +140 -0
  4. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  5. package/dist/src/index.d.ts +22 -19
  6. package/dist/src/index.js +47 -43
  7. package/dist/src/index.js.map +1 -1
  8. package/dist/src/lib/Constants.d.ts +25 -29
  9. package/dist/src/lib/Constants.js +136 -116
  10. package/dist/src/lib/Constants.js.map +1 -1
  11. package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
  12. package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -196
  13. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
  14. package/dist/src/lib/container/ContainerEntryDependency.d.ts +28 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +39 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +93 -84
  18. package/dist/src/lib/container/ContainerEntryModule.js +219 -234
  19. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  20. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
  21. package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
  22. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
  23. package/dist/src/lib/container/ContainerExposedDependency.d.ts +29 -24
  24. package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
  25. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
  26. package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
  27. package/dist/src/lib/container/ContainerPlugin.js +147 -211
  28. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  29. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
  30. package/dist/src/lib/container/ContainerReferencePlugin.js +74 -102
  31. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  32. package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
  33. package/dist/src/lib/container/FallbackDependency.js +46 -44
  34. package/dist/src/lib/container/FallbackDependency.js.map +1 -1
  35. package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
  36. package/dist/src/lib/container/FallbackItemDependency.js +24 -24
  37. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
  38. package/dist/src/lib/container/FallbackModule.d.ts +82 -71
  39. package/dist/src/lib/container/FallbackModule.js +133 -145
  40. package/dist/src/lib/container/FallbackModule.js.map +1 -1
  41. package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
  42. package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
  43. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
  44. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
  45. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +125 -188
  46. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
  47. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
  48. package/dist/src/lib/container/ModuleFederationPlugin.js +143 -180
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +79 -74
  51. package/dist/src/lib/container/RemoteModule.js +143 -153
  52. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  53. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
  54. package/dist/src/lib/container/RemoteRuntimeModule.js +86 -120
  55. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
  56. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
  57. package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
  58. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
  59. package/dist/src/lib/container/constant.d.ts +3 -0
  60. package/dist/src/lib/container/constant.js +11 -14
  61. package/dist/src/lib/container/constant.js.map +1 -1
  62. package/dist/src/lib/container/options.d.ts +7 -3
  63. package/dist/src/lib/container/options.js +51 -69
  64. package/dist/src/lib/container/options.js.map +1 -1
  65. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
  66. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
  67. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
  68. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
  69. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +71 -101
  70. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
  71. package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
  72. package/dist/src/lib/container/runtime/FederationModulesPlugin.js +55 -47
  73. package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
  74. package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
  75. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
  76. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
  77. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
  80. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -18
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +266 -345
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  83. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
  84. package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
  86. package/dist/src/lib/container/runtime/utils.d.ts +24 -13
  87. package/dist/src/lib/container/runtime/utils.js +83 -101
  88. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  89. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  90. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  91. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -68
  93. package/dist/src/lib/sharing/ConsumeSharedModule.js +186 -214
  94. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  96. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -475
  97. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  99. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -125
  100. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  101. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  102. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  103. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -39
  105. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -76
  106. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -82
  108. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -184
  109. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  111. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  112. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  114. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -550
  115. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  116. package/dist/src/lib/sharing/SharePlugin.d.ts +53 -49
  117. package/dist/src/lib/sharing/SharePlugin.js +86 -100
  118. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  120. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -100
  121. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  122. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  123. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  124. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  125. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +18 -14
  126. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +74 -128
  127. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +39 -34
  129. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +234 -322
  130. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -1
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +16 -11
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +30 -28
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -1
  134. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +28 -24
  135. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +91 -95
  136. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -1
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +29 -24
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +47 -43
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -1
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +20 -15
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +33 -29
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -1
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +85 -77
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +141 -153
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -1
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +15 -10
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +20 -24
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -1
  149. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +21 -16
  150. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +157 -231
  151. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -1
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +14 -9
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +26 -27
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -1
  155. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +18 -13
  156. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +41 -49
  157. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -1
  158. package/dist/src/lib/sharing/utils.d.ts +27 -24
  159. package/dist/src/lib/sharing/utils.js +224 -367
  160. package/dist/src/lib/sharing/utils.js.map +1 -1
  161. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  162. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  163. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  164. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  165. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  166. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  167. package/dist/src/prefetch.d.ts +3 -2
  168. package/dist/src/prefetch.js +17 -8
  169. package/dist/src/rspack.d.ts +3 -2
  170. package/dist/src/rspack.js +35 -11
  171. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  174. package/dist/src/runtime.d.ts +1 -1
  175. package/dist/src/runtime.js +11 -18
  176. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  177. package/dist/src/schemas/container/ContainerPlugin.check.js +958 -1218
  178. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  179. package/dist/src/schemas/container/ContainerPlugin.d.ts +271 -268
  180. package/dist/src/schemas/container/ContainerPlugin.js +273 -361
  181. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  182. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  183. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  185. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  186. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  187. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  188. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  189. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  190. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  191. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  192. package/dist/src/schemas/container/ExternalsType.js +8 -11
  193. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  194. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3001 -4812
  195. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +819 -814
  197. package/dist/src/schemas/container/ModuleFederationPlugin.js +780 -1053
  198. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  199. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  200. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -768
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -194
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -238
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  205. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  206. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -804
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -181
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -229
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  211. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  212. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  217. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  218. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -965
  219. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  220. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -242
  221. package/dist/src/schemas/sharing/SharePlugin.js +256 -293
  222. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  223. package/dist/src/utils.d.ts +3 -0
  224. package/dist/src/utils.js +35 -26
  225. package/dist/src/utils.js.map +1 -1
  226. package/dist/src/webpack.d.ts +2 -2
  227. package/dist/src/webpack.js +6 -40
  228. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -4
  229. package/dist/src/wrapper/AsyncBoundaryPlugin.js +12 -11
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  231. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +18 -13
  232. package/dist/src/wrapper/BaseWrapperPlugin.js +39 -39
  233. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -1
  234. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -4
  235. package/dist/src/wrapper/ConsumeSharedPlugin.js +12 -11
  236. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  237. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -4
  238. package/dist/src/wrapper/ContainerPlugin.js +12 -11
  239. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  240. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -4
  241. package/dist/src/wrapper/ContainerReferencePlugin.js +12 -11
  242. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  243. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  244. package/dist/src/wrapper/FederationModulesPlugin.js +19 -19
  245. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  246. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -6
  247. package/dist/src/wrapper/FederationRuntimePlugin.js +18 -17
  248. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  249. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -3
  250. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +12 -11
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  252. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -7
  253. package/dist/src/wrapper/ModuleFederationPlugin.js +73 -99
  254. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  255. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -4
  256. package/dist/src/wrapper/ProvideSharedPlugin.js +12 -11
  257. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  258. package/dist/src/wrapper/SharePlugin.d.ts +10 -4
  259. package/dist/src/wrapper/SharePlugin.js +12 -11
  260. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  261. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +9 -4
  262. package/dist/src/wrapper/TreeShakingSharedPlugin.js +12 -11
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -1
  264. package/package.json +21 -14
  265. package/dist/package.json +0 -110
  266. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  267. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  268. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  269. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  270. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  271. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  272. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -86
  273. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -100
  274. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -102
  275. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -116
  276. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  277. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  279. package/dist/src/prefetch.js.map +0 -1
  280. package/dist/src/rspack.js.map +0 -1
  281. package/dist/src/runtime.js.map +0 -1
  282. package/dist/src/types/runtime.d.ts +0 -10
  283. package/dist/src/types/runtime.js +0 -3
  284. package/dist/src/types/runtime.js.map +0 -1
  285. package/dist/src/webpack.js.map +0 -1
@@ -1,295 +1,298 @@
1
+ //#region src/schemas/container/ContainerPlugin.d.ts
1
2
  declare const _default: {
2
- readonly definitions: {
3
- readonly AmdContainer: {
4
- readonly description: "Add a container for define/require functions in the AMD module.";
5
- readonly type: "string";
6
- readonly minLength: 1;
7
- };
8
- readonly AuxiliaryComment: {
9
- readonly description: "Add a comment in the UMD wrapper.";
10
- readonly anyOf: readonly [{
11
- readonly description: "Append the same comment above each import style.";
12
- readonly type: "string";
13
- }, {
14
- readonly $ref: "#/definitions/LibraryCustomUmdCommentObject";
15
- }];
16
- };
17
- readonly EntryRuntime: {
18
- readonly description: "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.";
19
- readonly anyOf: readonly [{
20
- readonly enum: readonly [false];
21
- }, {
22
- readonly type: "string";
23
- readonly minLength: 1;
24
- }];
25
- };
26
- readonly Exposes: {
27
- readonly description: "Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.";
28
- readonly anyOf: readonly [{
29
- readonly type: "array";
30
- readonly items: {
31
- readonly description: "Modules that should be exposed by this container.";
32
- readonly anyOf: readonly [{
33
- readonly $ref: "#/definitions/ExposesItem";
34
- }, {
35
- readonly $ref: "#/definitions/ExposesObject";
36
- }];
37
- };
38
- }, {
39
- readonly $ref: "#/definitions/ExposesObject";
40
- }];
3
+ readonly definitions: {
4
+ readonly AmdContainer: {
5
+ readonly description: "Add a container for define/require functions in the AMD module.";
6
+ readonly type: "string";
7
+ readonly minLength: 1;
8
+ };
9
+ readonly AuxiliaryComment: {
10
+ readonly description: "Add a comment in the UMD wrapper.";
11
+ readonly anyOf: readonly [{
12
+ readonly description: "Append the same comment above each import style.";
13
+ readonly type: "string";
14
+ }, {
15
+ readonly $ref: "#/definitions/LibraryCustomUmdCommentObject";
16
+ }];
17
+ };
18
+ readonly EntryRuntime: {
19
+ readonly description: "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.";
20
+ readonly anyOf: readonly [{
21
+ readonly enum: readonly [false];
22
+ }, {
23
+ readonly type: "string";
24
+ readonly minLength: 1;
25
+ }];
26
+ };
27
+ readonly Exposes: {
28
+ readonly description: "Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.";
29
+ readonly anyOf: readonly [{
30
+ readonly type: "array";
31
+ readonly items: {
32
+ readonly description: "Modules that should be exposed by this container.";
33
+ readonly anyOf: readonly [{
34
+ readonly $ref: "#/definitions/ExposesItem";
35
+ }, {
36
+ readonly $ref: "#/definitions/ExposesObject";
37
+ }];
41
38
  };
42
- readonly ExposesConfig: {
43
- readonly description: "Advanced configuration for modules that should be exposed by this container.";
44
- readonly type: "object";
45
- readonly additionalProperties: false;
46
- readonly properties: {
47
- readonly import: {
48
- readonly description: "Request to a module that should be exposed by this container.";
49
- readonly anyOf: readonly [{
50
- readonly $ref: "#/definitions/ExposesItem";
51
- }, {
52
- readonly $ref: "#/definitions/ExposesItems";
53
- }];
54
- };
55
- readonly name: {
56
- readonly description: "Custom chunk name for the exposed module.";
57
- readonly type: "string";
58
- };
59
- };
60
- readonly required: readonly ["import"];
39
+ }, {
40
+ readonly $ref: "#/definitions/ExposesObject";
41
+ }];
42
+ };
43
+ readonly ExposesConfig: {
44
+ readonly description: "Advanced configuration for modules that should be exposed by this container.";
45
+ readonly type: "object";
46
+ readonly additionalProperties: false;
47
+ readonly properties: {
48
+ readonly import: {
49
+ readonly description: "Request to a module that should be exposed by this container.";
50
+ readonly anyOf: readonly [{
51
+ readonly $ref: "#/definitions/ExposesItem";
52
+ }, {
53
+ readonly $ref: "#/definitions/ExposesItems";
54
+ }];
61
55
  };
62
- readonly ExposesItem: {
63
- readonly description: "Module that should be exposed by this container.";
64
- readonly type: "string";
65
- readonly minLength: 1;
56
+ readonly name: {
57
+ readonly description: "Custom chunk name for the exposed module.";
58
+ readonly type: "string";
66
59
  };
67
- readonly ExposesItems: {
68
- readonly description: "Modules that should be exposed by this container.";
69
- readonly type: "array";
70
- readonly items: {
71
- readonly $ref: "#/definitions/ExposesItem";
72
- };
60
+ };
61
+ readonly required: readonly ["import"];
62
+ };
63
+ readonly ExposesItem: {
64
+ readonly description: "Module that should be exposed by this container.";
65
+ readonly type: "string";
66
+ readonly minLength: 1;
67
+ };
68
+ readonly ExposesItems: {
69
+ readonly description: "Modules that should be exposed by this container.";
70
+ readonly type: "array";
71
+ readonly items: {
72
+ readonly $ref: "#/definitions/ExposesItem";
73
+ };
74
+ };
75
+ readonly ExposesObject: {
76
+ readonly description: "Modules that should be exposed by this container. Property names are used as public paths.";
77
+ readonly type: "object";
78
+ readonly additionalProperties: {
79
+ readonly description: "Modules that should be exposed by this container.";
80
+ readonly anyOf: readonly [{
81
+ readonly $ref: "#/definitions/ExposesConfig";
82
+ }, {
83
+ readonly $ref: "#/definitions/ExposesItem";
84
+ }, {
85
+ readonly $ref: "#/definitions/ExposesItems";
86
+ }];
87
+ };
88
+ };
89
+ readonly LibraryCustomUmdCommentObject: {
90
+ readonly description: "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.";
91
+ readonly type: "object";
92
+ readonly additionalProperties: false;
93
+ readonly properties: {
94
+ readonly amd: {
95
+ readonly description: "Set comment for `amd` section in UMD.";
96
+ readonly type: "string";
73
97
  };
74
- readonly ExposesObject: {
75
- readonly description: "Modules that should be exposed by this container. Property names are used as public paths.";
76
- readonly type: "object";
77
- readonly additionalProperties: {
78
- readonly description: "Modules that should be exposed by this container.";
79
- readonly anyOf: readonly [{
80
- readonly $ref: "#/definitions/ExposesConfig";
81
- }, {
82
- readonly $ref: "#/definitions/ExposesItem";
83
- }, {
84
- readonly $ref: "#/definitions/ExposesItems";
85
- }];
86
- };
98
+ readonly commonjs: {
99
+ readonly description: "Set comment for `commonjs` (exports) section in UMD.";
100
+ readonly type: "string";
87
101
  };
88
- readonly LibraryCustomUmdCommentObject: {
89
- readonly description: "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.";
90
- readonly type: "object";
91
- readonly additionalProperties: false;
92
- readonly properties: {
93
- readonly amd: {
94
- readonly description: "Set comment for `amd` section in UMD.";
95
- readonly type: "string";
96
- };
97
- readonly commonjs: {
98
- readonly description: "Set comment for `commonjs` (exports) section in UMD.";
99
- readonly type: "string";
100
- };
101
- readonly commonjs2: {
102
- readonly description: "Set comment for `commonjs2` (module.exports) section in UMD.";
103
- readonly type: "string";
104
- };
105
- readonly root: {
106
- readonly description: "Set comment for `root` (global variable) section in UMD.";
107
- readonly type: "string";
108
- };
109
- };
102
+ readonly commonjs2: {
103
+ readonly description: "Set comment for `commonjs2` (module.exports) section in UMD.";
104
+ readonly type: "string";
110
105
  };
111
- readonly LibraryCustomUmdObject: {
112
- readonly description: "Description object for all UMD variants of the library name.";
113
- readonly type: "object";
114
- readonly additionalProperties: false;
115
- readonly properties: {
116
- readonly amd: {
117
- readonly description: "Name of the exposed AMD library in the UMD.";
118
- readonly type: "string";
119
- readonly minLength: 1;
120
- };
121
- readonly commonjs: {
122
- readonly description: "Name of the exposed commonjs export in the UMD.";
123
- readonly type: "string";
124
- readonly minLength: 1;
125
- };
126
- readonly root: {
127
- readonly description: "Name of the property exposed globally by a UMD library.";
128
- readonly anyOf: readonly [{
129
- readonly type: "array";
130
- readonly items: {
131
- readonly description: "Part of the name of the property exposed globally by a UMD library.";
132
- readonly type: "string";
133
- readonly minLength: 1;
134
- };
135
- }, {
136
- readonly type: "string";
137
- readonly minLength: 1;
138
- }];
139
- };
140
- };
106
+ readonly root: {
107
+ readonly description: "Set comment for `root` (global variable) section in UMD.";
108
+ readonly type: "string";
141
109
  };
142
- readonly LibraryExport: {
143
- readonly description: "Specify which export should be exposed as library.";
144
- readonly anyOf: readonly [{
145
- readonly type: "array";
146
- readonly items: {
147
- readonly description: "Part of the export that should be exposed as library.";
148
- readonly type: "string";
149
- readonly minLength: 1;
150
- };
151
- }, {
152
- readonly type: "string";
153
- readonly minLength: 1;
154
- }];
110
+ };
111
+ };
112
+ readonly LibraryCustomUmdObject: {
113
+ readonly description: "Description object for all UMD variants of the library name.";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly properties: {
117
+ readonly amd: {
118
+ readonly description: "Name of the exposed AMD library in the UMD.";
119
+ readonly type: "string";
120
+ readonly minLength: 1;
155
121
  };
156
- readonly LibraryName: {
157
- readonly description: "The name of the library (some types allow unnamed libraries too).";
158
- readonly anyOf: readonly [{
159
- readonly type: "array";
160
- readonly items: {
161
- readonly description: "A part of the library name.";
162
- readonly type: "string";
163
- readonly minLength: 1;
164
- };
165
- readonly minItems: 1;
166
- }, {
167
- readonly type: "string";
168
- readonly minLength: 1;
169
- }, {
170
- readonly $ref: "#/definitions/LibraryCustomUmdObject";
171
- }];
122
+ readonly commonjs: {
123
+ readonly description: "Name of the exposed commonjs export in the UMD.";
124
+ readonly type: "string";
125
+ readonly minLength: 1;
172
126
  };
173
- readonly LibraryOptions: {
174
- readonly description: "Options for library.";
175
- readonly type: "object";
176
- readonly additionalProperties: false;
177
- readonly properties: {
178
- readonly amdContainer: {
179
- readonly $ref: "#/definitions/AmdContainer";
180
- };
181
- readonly auxiliaryComment: {
182
- readonly $ref: "#/definitions/AuxiliaryComment";
183
- };
184
- readonly export: {
185
- readonly $ref: "#/definitions/LibraryExport";
186
- };
187
- readonly name: {
188
- readonly $ref: "#/definitions/LibraryName";
189
- };
190
- readonly type: {
191
- readonly $ref: "#/definitions/LibraryType";
192
- };
193
- readonly umdNamedDefine: {
194
- readonly $ref: "#/definitions/UmdNamedDefine";
195
- };
127
+ readonly root: {
128
+ readonly description: "Name of the property exposed globally by a UMD library.";
129
+ readonly anyOf: readonly [{
130
+ readonly type: "array";
131
+ readonly items: {
132
+ readonly description: "Part of the name of the property exposed globally by a UMD library.";
133
+ readonly type: "string";
134
+ readonly minLength: 1;
196
135
  };
197
- readonly required: readonly ["type"];
136
+ }, {
137
+ readonly type: "string";
138
+ readonly minLength: 1;
139
+ }];
198
140
  };
199
- readonly LibraryType: {
200
- readonly description: "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).";
201
- readonly anyOf: readonly [{
202
- readonly enum: readonly ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"];
203
- }, {
204
- readonly type: "string";
205
- }];
141
+ };
142
+ };
143
+ readonly LibraryExport: {
144
+ readonly description: "Specify which export should be exposed as library.";
145
+ readonly anyOf: readonly [{
146
+ readonly type: "array";
147
+ readonly items: {
148
+ readonly description: "Part of the export that should be exposed as library.";
149
+ readonly type: "string";
150
+ readonly minLength: 1;
206
151
  };
207
- readonly UmdNamedDefine: {
208
- readonly description: "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.";
209
- readonly type: "boolean";
152
+ }, {
153
+ readonly type: "string";
154
+ readonly minLength: 1;
155
+ }];
156
+ };
157
+ readonly LibraryName: {
158
+ readonly description: "The name of the library (some types allow unnamed libraries too).";
159
+ readonly anyOf: readonly [{
160
+ readonly type: "array";
161
+ readonly items: {
162
+ readonly description: "A part of the library name.";
163
+ readonly type: "string";
164
+ readonly minLength: 1;
210
165
  };
166
+ readonly minItems: 1;
167
+ }, {
168
+ readonly type: "string";
169
+ readonly minLength: 1;
170
+ }, {
171
+ readonly $ref: "#/definitions/LibraryCustomUmdObject";
172
+ }];
211
173
  };
212
- readonly title: "ContainerPluginOptions";
213
- readonly type: "object";
214
- readonly additionalProperties: false;
215
- readonly properties: {
216
- readonly exposes: {
217
- readonly $ref: "#/definitions/Exposes";
174
+ readonly LibraryOptions: {
175
+ readonly description: "Options for library.";
176
+ readonly type: "object";
177
+ readonly additionalProperties: false;
178
+ readonly properties: {
179
+ readonly amdContainer: {
180
+ readonly $ref: "#/definitions/AmdContainer";
218
181
  };
219
- readonly filename: {
220
- readonly description: "The filename for this container relative path inside the `output.path` directory.";
221
- readonly type: "string";
222
- readonly absolutePath: false;
223
- readonly minLength: 1;
182
+ readonly auxiliaryComment: {
183
+ readonly $ref: "#/definitions/AuxiliaryComment";
224
184
  };
225
- readonly library: {
226
- readonly $ref: "#/definitions/LibraryOptions";
185
+ readonly export: {
186
+ readonly $ref: "#/definitions/LibraryExport";
227
187
  };
228
188
  readonly name: {
229
- readonly description: "The name for this container.";
230
- readonly type: "string";
231
- readonly minLength: 1;
189
+ readonly $ref: "#/definitions/LibraryName";
232
190
  };
233
- readonly runtime: {
234
- readonly $ref: "#/definitions/EntryRuntime";
191
+ readonly type: {
192
+ readonly $ref: "#/definitions/LibraryType";
235
193
  };
236
- readonly shareScope: {
237
- readonly description: "The name of the share scope which is shared with the host (defaults to 'default').";
238
- readonly anyOf: readonly [{
239
- readonly type: "string";
240
- readonly minLength: 1;
241
- }, {
242
- readonly type: "array";
243
- readonly items: {
244
- readonly type: "string";
245
- readonly minLength: 1;
246
- };
247
- }];
194
+ readonly umdNamedDefine: {
195
+ readonly $ref: "#/definitions/UmdNamedDefine";
248
196
  };
249
- readonly experiments: {
250
- readonly description: "Experimental features configuration";
251
- readonly type: "object";
252
- readonly additionalProperties: false;
253
- readonly properties: {
254
- readonly asyncStartup: {
255
- readonly description: "Enable async startup for the container";
256
- readonly type: "boolean";
257
- };
258
- readonly externalRuntime: {
259
- readonly description: "After setting true, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true set, otherwise it will not run properly!)";
260
- readonly type: "boolean";
261
- readonly default: false;
262
- };
263
- readonly provideExternalRuntime: {
264
- readonly description: "Enable providing external runtime";
265
- readonly type: "boolean";
266
- readonly default: false;
267
- };
268
- };
197
+ };
198
+ readonly required: readonly ["type"];
199
+ };
200
+ readonly LibraryType: {
201
+ readonly description: "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).";
202
+ readonly anyOf: readonly [{
203
+ readonly enum: readonly ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"];
204
+ }, {
205
+ readonly type: "string";
206
+ }];
207
+ };
208
+ readonly UmdNamedDefine: {
209
+ readonly description: "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.";
210
+ readonly type: "boolean";
211
+ };
212
+ };
213
+ readonly title: "ContainerPluginOptions";
214
+ readonly type: "object";
215
+ readonly additionalProperties: false;
216
+ readonly properties: {
217
+ readonly exposes: {
218
+ readonly $ref: "#/definitions/Exposes";
219
+ };
220
+ readonly filename: {
221
+ readonly description: "The filename for this container relative path inside the `output.path` directory.";
222
+ readonly type: "string";
223
+ readonly absolutePath: false;
224
+ readonly minLength: 1;
225
+ };
226
+ readonly library: {
227
+ readonly $ref: "#/definitions/LibraryOptions";
228
+ };
229
+ readonly name: {
230
+ readonly description: "The name for this container.";
231
+ readonly type: "string";
232
+ readonly minLength: 1;
233
+ };
234
+ readonly runtime: {
235
+ readonly $ref: "#/definitions/EntryRuntime";
236
+ };
237
+ readonly shareScope: {
238
+ readonly description: "The name of the share scope which is shared with the host (defaults to 'default').";
239
+ readonly anyOf: readonly [{
240
+ readonly type: "string";
241
+ readonly minLength: 1;
242
+ }, {
243
+ readonly type: "array";
244
+ readonly items: {
245
+ readonly type: "string";
246
+ readonly minLength: 1;
269
247
  };
270
- readonly dataPrefetch: {
271
- readonly description: "Enable data prefetching for container modules.";
272
- readonly type: "boolean";
248
+ }];
249
+ };
250
+ readonly experiments: {
251
+ readonly description: "Experimental features configuration";
252
+ readonly type: "object";
253
+ readonly additionalProperties: false;
254
+ readonly properties: {
255
+ readonly asyncStartup: {
256
+ readonly description: "Enable async startup for the container";
257
+ readonly type: "boolean";
273
258
  };
274
- readonly runtimePlugins: {
275
- readonly description: "Array of runtime plugins to be applied";
276
- readonly type: "array";
277
- readonly items: {
278
- readonly anyOf: readonly [{
279
- readonly type: "string";
280
- }, {
281
- readonly type: "array";
282
- readonly items: readonly [{
283
- readonly type: "string";
284
- }, {
285
- readonly type: "object";
286
- }];
287
- readonly minItems: 2;
288
- readonly maxItems: 2;
289
- }];
290
- };
259
+ readonly externalRuntime: {
260
+ readonly description: "After setting true, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true set, otherwise it will not run properly!)";
261
+ readonly type: "boolean";
262
+ readonly default: false;
291
263
  };
264
+ readonly provideExternalRuntime: {
265
+ readonly description: "Enable providing external runtime";
266
+ readonly type: "boolean";
267
+ readonly default: false;
268
+ };
269
+ };
270
+ };
271
+ readonly dataPrefetch: {
272
+ readonly description: "Enable data prefetching for container modules.";
273
+ readonly type: "boolean";
274
+ };
275
+ readonly runtimePlugins: {
276
+ readonly description: "Array of runtime plugins to be applied";
277
+ readonly type: "array";
278
+ readonly items: {
279
+ readonly anyOf: readonly [{
280
+ readonly type: "string";
281
+ }, {
282
+ readonly type: "array";
283
+ readonly items: readonly [{
284
+ readonly type: "string";
285
+ }, {
286
+ readonly type: "object";
287
+ }];
288
+ readonly minItems: 2;
289
+ readonly maxItems: 2;
290
+ }];
291
+ };
292
292
  };
293
- readonly required: readonly ["name", "exposes"];
293
+ };
294
+ readonly required: readonly ["name", "exposes"];
294
295
  };
295
- export default _default;
296
+ //#endregion
297
+ export { _default as default };
298
+ //# sourceMappingURL=ContainerPlugin.d.ts.map