@module-federation/enhanced 2.1.0 → 2.2.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 (285) hide show
  1. package/dist/CHANGELOG.md +2375 -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 -200
  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 -181
  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 -132
  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 -20
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +265 -358
  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 -137
  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 -103
  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 -328
  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 +23 -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 -222
  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,363 +1,275 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* eslint-disable */
4
- /*
5
- * This file was automatically generated.
6
- * DO NOT MODIFY BY HAND.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.default = {
10
- definitions: {
11
- AmdContainer: {
12
- description: 'Add a container for define/require functions in the AMD module.',
13
- type: 'string',
14
- minLength: 1,
15
- },
16
- AuxiliaryComment: {
17
- description: 'Add a comment in the UMD wrapper.',
18
- anyOf: [
19
- {
20
- description: 'Append the same comment above each import style.',
21
- type: 'string',
22
- },
23
- {
24
- $ref: '#/definitions/LibraryCustomUmdCommentObject',
25
- },
26
- ],
27
- },
28
- EntryRuntime: {
29
- 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.',
30
- anyOf: [
31
- {
32
- enum: [false],
33
- },
34
- {
35
- type: 'string',
36
- minLength: 1,
37
- },
38
- ],
39
- },
40
- Exposes: {
41
- 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.',
42
- anyOf: [
43
- {
44
- type: 'array',
45
- items: {
46
- description: 'Modules that should be exposed by this container.',
47
- anyOf: [
48
- {
49
- $ref: '#/definitions/ExposesItem',
50
- },
51
- {
52
- $ref: '#/definitions/ExposesObject',
53
- },
54
- ],
55
- },
56
- },
57
- {
58
- $ref: '#/definitions/ExposesObject',
59
- },
60
- ],
61
- },
62
- ExposesConfig: {
63
- description: 'Advanced configuration for modules that should be exposed by this container.',
64
- type: 'object',
65
- additionalProperties: false,
66
- properties: {
67
- import: {
68
- description: 'Request to a module that should be exposed by this container.',
69
- anyOf: [
70
- {
71
- $ref: '#/definitions/ExposesItem',
72
- },
73
- {
74
- $ref: '#/definitions/ExposesItems',
75
- },
76
- ],
77
- },
78
- name: {
79
- description: 'Custom chunk name for the exposed module.',
80
- type: 'string',
81
- },
82
- },
83
- required: ['import'],
84
- },
85
- ExposesItem: {
86
- description: 'Module that should be exposed by this container.',
87
- type: 'string',
88
- minLength: 1,
89
- },
90
- ExposesItems: {
91
- description: 'Modules that should be exposed by this container.',
92
- type: 'array',
93
- items: {
94
- $ref: '#/definitions/ExposesItem',
95
- },
96
- },
97
- ExposesObject: {
98
- description: 'Modules that should be exposed by this container. Property names are used as public paths.',
99
- type: 'object',
100
- additionalProperties: {
101
- description: 'Modules that should be exposed by this container.',
102
- anyOf: [
103
- {
104
- $ref: '#/definitions/ExposesConfig',
105
- },
106
- {
107
- $ref: '#/definitions/ExposesItem',
108
- },
109
- {
110
- $ref: '#/definitions/ExposesItems',
111
- },
112
- ],
113
- },
114
- },
115
- LibraryCustomUmdCommentObject: {
116
- description: 'Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.',
117
- type: 'object',
118
- additionalProperties: false,
119
- properties: {
120
- amd: {
121
- description: 'Set comment for `amd` section in UMD.',
122
- type: 'string',
123
- },
124
- commonjs: {
125
- description: 'Set comment for `commonjs` (exports) section in UMD.',
126
- type: 'string',
127
- },
128
- commonjs2: {
129
- description: 'Set comment for `commonjs2` (module.exports) section in UMD.',
130
- type: 'string',
131
- },
132
- root: {
133
- description: 'Set comment for `root` (global variable) section in UMD.',
134
- type: 'string',
135
- },
136
- },
137
- },
138
- LibraryCustomUmdObject: {
139
- description: 'Description object for all UMD variants of the library name.',
140
- type: 'object',
141
- additionalProperties: false,
142
- properties: {
143
- amd: {
144
- description: 'Name of the exposed AMD library in the UMD.',
145
- type: 'string',
146
- minLength: 1,
147
- },
148
- commonjs: {
149
- description: 'Name of the exposed commonjs export in the UMD.',
150
- type: 'string',
151
- minLength: 1,
152
- },
153
- root: {
154
- description: 'Name of the property exposed globally by a UMD library.',
155
- anyOf: [
156
- {
157
- type: 'array',
158
- items: {
159
- description: 'Part of the name of the property exposed globally by a UMD library.',
160
- type: 'string',
161
- minLength: 1,
162
- },
163
- },
164
- {
165
- type: 'string',
166
- minLength: 1,
167
- },
168
- ],
169
- },
170
- },
171
- },
172
- LibraryExport: {
173
- description: 'Specify which export should be exposed as library.',
174
- anyOf: [
175
- {
176
- type: 'array',
177
- items: {
178
- description: 'Part of the export that should be exposed as library.',
179
- type: 'string',
180
- minLength: 1,
181
- },
182
- },
183
- {
184
- type: 'string',
185
- minLength: 1,
186
- },
187
- ],
188
- },
189
- LibraryName: {
190
- description: 'The name of the library (some types allow unnamed libraries too).',
191
- anyOf: [
192
- {
193
- type: 'array',
194
- items: {
195
- description: 'A part of the library name.',
196
- type: 'string',
197
- minLength: 1,
198
- },
199
- minItems: 1,
200
- },
201
- {
202
- type: 'string',
203
- minLength: 1,
204
- },
205
- {
206
- $ref: '#/definitions/LibraryCustomUmdObject',
207
- },
208
- ],
209
- },
210
- LibraryOptions: {
211
- description: 'Options for library.',
212
- type: 'object',
213
- additionalProperties: false,
214
- properties: {
215
- amdContainer: {
216
- $ref: '#/definitions/AmdContainer',
217
- },
218
- auxiliaryComment: {
219
- $ref: '#/definitions/AuxiliaryComment',
220
- },
221
- export: {
222
- $ref: '#/definitions/LibraryExport',
223
- },
224
- name: {
225
- $ref: '#/definitions/LibraryName',
226
- },
227
- type: {
228
- $ref: '#/definitions/LibraryType',
229
- },
230
- umdNamedDefine: {
231
- $ref: '#/definitions/UmdNamedDefine',
232
- },
233
- },
234
- required: ['type'],
235
- },
236
- LibraryType: {
237
- 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).",
238
- anyOf: [
239
- {
240
- enum: [
241
- 'var',
242
- 'module',
243
- 'assign',
244
- 'assign-properties',
245
- 'this',
246
- 'window',
247
- 'self',
248
- 'global',
249
- 'commonjs',
250
- 'commonjs2',
251
- 'commonjs-module',
252
- 'commonjs-static',
253
- 'amd',
254
- 'amd-require',
255
- 'umd',
256
- 'umd2',
257
- 'jsonp',
258
- 'system',
259
- ],
260
- },
261
- {
262
- type: 'string',
263
- },
264
- ],
265
- },
266
- UmdNamedDefine: {
267
- description: 'If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.',
268
- type: 'boolean',
269
- },
270
- },
271
- title: 'ContainerPluginOptions',
272
- type: 'object',
273
- additionalProperties: false,
274
- properties: {
275
- exposes: {
276
- $ref: '#/definitions/Exposes',
277
- },
278
- filename: {
279
- description: 'The filename for this container relative path inside the `output.path` directory.',
280
- type: 'string',
281
- absolutePath: false,
282
- minLength: 1,
283
- },
284
- library: {
285
- $ref: '#/definitions/LibraryOptions',
286
- },
287
- name: {
288
- description: 'The name for this container.',
289
- type: 'string',
290
- minLength: 1,
291
- },
292
- runtime: {
293
- $ref: '#/definitions/EntryRuntime',
294
- },
295
- shareScope: {
296
- description: "The name of the share scope which is shared with the host (defaults to 'default').",
297
- anyOf: [
298
- {
299
- type: 'string',
300
- minLength: 1,
301
- },
302
- {
303
- type: 'array',
304
- items: {
305
- type: 'string',
306
- minLength: 1,
307
- },
308
- },
309
- ],
310
- },
311
- experiments: {
312
- description: 'Experimental features configuration',
313
- type: 'object',
314
- additionalProperties: false,
315
- properties: {
316
- asyncStartup: {
317
- description: 'Enable async startup for the container',
318
- type: 'boolean',
319
- },
320
- externalRuntime: {
321
- 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!)',
322
- type: 'boolean',
323
- default: false,
324
- },
325
- provideExternalRuntime: {
326
- description: 'Enable providing external runtime',
327
- type: 'boolean',
328
- default: false,
329
- },
330
- },
331
- },
332
- dataPrefetch: {
333
- description: 'Enable data prefetching for container modules.',
334
- type: 'boolean',
335
- },
336
- runtimePlugins: {
337
- description: 'Array of runtime plugins to be applied',
338
- type: 'array',
339
- items: {
340
- anyOf: [
341
- {
342
- type: 'string',
343
- },
344
- {
345
- type: 'array',
346
- items: [
347
- {
348
- type: 'string',
349
- },
350
- {
351
- type: 'object',
352
- },
353
- ],
354
- minItems: 2,
355
- maxItems: 2,
356
- },
357
- ],
358
- },
359
- },
360
- },
361
- required: ['name', 'exposes'],
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.js');
3
+
4
+ //#region src/schemas/container/ContainerPlugin.ts
5
+ var ContainerPlugin_default = {
6
+ definitions: {
7
+ AmdContainer: {
8
+ description: "Add a container for define/require functions in the AMD module.",
9
+ type: "string",
10
+ minLength: 1
11
+ },
12
+ AuxiliaryComment: {
13
+ description: "Add a comment in the UMD wrapper.",
14
+ anyOf: [{
15
+ description: "Append the same comment above each import style.",
16
+ type: "string"
17
+ }, { $ref: "#/definitions/LibraryCustomUmdCommentObject" }]
18
+ },
19
+ EntryRuntime: {
20
+ 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.",
21
+ anyOf: [{ enum: [false] }, {
22
+ type: "string",
23
+ minLength: 1
24
+ }]
25
+ },
26
+ Exposes: {
27
+ 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
+ anyOf: [{
29
+ type: "array",
30
+ items: {
31
+ description: "Modules that should be exposed by this container.",
32
+ anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesObject" }]
33
+ }
34
+ }, { $ref: "#/definitions/ExposesObject" }]
35
+ },
36
+ ExposesConfig: {
37
+ description: "Advanced configuration for modules that should be exposed by this container.",
38
+ type: "object",
39
+ additionalProperties: false,
40
+ properties: {
41
+ import: {
42
+ description: "Request to a module that should be exposed by this container.",
43
+ anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesItems" }]
44
+ },
45
+ name: {
46
+ description: "Custom chunk name for the exposed module.",
47
+ type: "string"
48
+ }
49
+ },
50
+ required: ["import"]
51
+ },
52
+ ExposesItem: {
53
+ description: "Module that should be exposed by this container.",
54
+ type: "string",
55
+ minLength: 1
56
+ },
57
+ ExposesItems: {
58
+ description: "Modules that should be exposed by this container.",
59
+ type: "array",
60
+ items: { $ref: "#/definitions/ExposesItem" }
61
+ },
62
+ ExposesObject: {
63
+ description: "Modules that should be exposed by this container. Property names are used as public paths.",
64
+ type: "object",
65
+ additionalProperties: {
66
+ description: "Modules that should be exposed by this container.",
67
+ anyOf: [
68
+ { $ref: "#/definitions/ExposesConfig" },
69
+ { $ref: "#/definitions/ExposesItem" },
70
+ { $ref: "#/definitions/ExposesItems" }
71
+ ]
72
+ }
73
+ },
74
+ LibraryCustomUmdCommentObject: {
75
+ description: "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
76
+ type: "object",
77
+ additionalProperties: false,
78
+ properties: {
79
+ amd: {
80
+ description: "Set comment for `amd` section in UMD.",
81
+ type: "string"
82
+ },
83
+ commonjs: {
84
+ description: "Set comment for `commonjs` (exports) section in UMD.",
85
+ type: "string"
86
+ },
87
+ commonjs2: {
88
+ description: "Set comment for `commonjs2` (module.exports) section in UMD.",
89
+ type: "string"
90
+ },
91
+ root: {
92
+ description: "Set comment for `root` (global variable) section in UMD.",
93
+ type: "string"
94
+ }
95
+ }
96
+ },
97
+ LibraryCustomUmdObject: {
98
+ description: "Description object for all UMD variants of the library name.",
99
+ type: "object",
100
+ additionalProperties: false,
101
+ properties: {
102
+ amd: {
103
+ description: "Name of the exposed AMD library in the UMD.",
104
+ type: "string",
105
+ minLength: 1
106
+ },
107
+ commonjs: {
108
+ description: "Name of the exposed commonjs export in the UMD.",
109
+ type: "string",
110
+ minLength: 1
111
+ },
112
+ root: {
113
+ description: "Name of the property exposed globally by a UMD library.",
114
+ anyOf: [{
115
+ type: "array",
116
+ items: {
117
+ description: "Part of the name of the property exposed globally by a UMD library.",
118
+ type: "string",
119
+ minLength: 1
120
+ }
121
+ }, {
122
+ type: "string",
123
+ minLength: 1
124
+ }]
125
+ }
126
+ }
127
+ },
128
+ LibraryExport: {
129
+ description: "Specify which export should be exposed as library.",
130
+ anyOf: [{
131
+ type: "array",
132
+ items: {
133
+ description: "Part of the export that should be exposed as library.",
134
+ type: "string",
135
+ minLength: 1
136
+ }
137
+ }, {
138
+ type: "string",
139
+ minLength: 1
140
+ }]
141
+ },
142
+ LibraryName: {
143
+ description: "The name of the library (some types allow unnamed libraries too).",
144
+ anyOf: [
145
+ {
146
+ type: "array",
147
+ items: {
148
+ description: "A part of the library name.",
149
+ type: "string",
150
+ minLength: 1
151
+ },
152
+ minItems: 1
153
+ },
154
+ {
155
+ type: "string",
156
+ minLength: 1
157
+ },
158
+ { $ref: "#/definitions/LibraryCustomUmdObject" }
159
+ ]
160
+ },
161
+ LibraryOptions: {
162
+ description: "Options for library.",
163
+ type: "object",
164
+ additionalProperties: false,
165
+ properties: {
166
+ amdContainer: { $ref: "#/definitions/AmdContainer" },
167
+ auxiliaryComment: { $ref: "#/definitions/AuxiliaryComment" },
168
+ export: { $ref: "#/definitions/LibraryExport" },
169
+ name: { $ref: "#/definitions/LibraryName" },
170
+ type: { $ref: "#/definitions/LibraryType" },
171
+ umdNamedDefine: { $ref: "#/definitions/UmdNamedDefine" }
172
+ },
173
+ required: ["type"]
174
+ },
175
+ LibraryType: {
176
+ 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).",
177
+ anyOf: [{ enum: [
178
+ "var",
179
+ "module",
180
+ "assign",
181
+ "assign-properties",
182
+ "this",
183
+ "window",
184
+ "self",
185
+ "global",
186
+ "commonjs",
187
+ "commonjs2",
188
+ "commonjs-module",
189
+ "commonjs-static",
190
+ "amd",
191
+ "amd-require",
192
+ "umd",
193
+ "umd2",
194
+ "jsonp",
195
+ "system"
196
+ ] }, { type: "string" }]
197
+ },
198
+ UmdNamedDefine: {
199
+ description: "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
200
+ type: "boolean"
201
+ }
202
+ },
203
+ title: "ContainerPluginOptions",
204
+ type: "object",
205
+ additionalProperties: false,
206
+ properties: {
207
+ exposes: { $ref: "#/definitions/Exposes" },
208
+ filename: {
209
+ description: "The filename for this container relative path inside the `output.path` directory.",
210
+ type: "string",
211
+ absolutePath: false,
212
+ minLength: 1
213
+ },
214
+ library: { $ref: "#/definitions/LibraryOptions" },
215
+ name: {
216
+ description: "The name for this container.",
217
+ type: "string",
218
+ minLength: 1
219
+ },
220
+ runtime: { $ref: "#/definitions/EntryRuntime" },
221
+ shareScope: {
222
+ description: "The name of the share scope which is shared with the host (defaults to 'default').",
223
+ anyOf: [{
224
+ type: "string",
225
+ minLength: 1
226
+ }, {
227
+ type: "array",
228
+ items: {
229
+ type: "string",
230
+ minLength: 1
231
+ }
232
+ }]
233
+ },
234
+ experiments: {
235
+ description: "Experimental features configuration",
236
+ type: "object",
237
+ additionalProperties: false,
238
+ properties: {
239
+ asyncStartup: {
240
+ description: "Enable async startup for the container",
241
+ type: "boolean"
242
+ },
243
+ externalRuntime: {
244
+ 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!)",
245
+ type: "boolean",
246
+ default: false
247
+ },
248
+ provideExternalRuntime: {
249
+ description: "Enable providing external runtime",
250
+ type: "boolean",
251
+ default: false
252
+ }
253
+ }
254
+ },
255
+ dataPrefetch: {
256
+ description: "Enable data prefetching for container modules.",
257
+ type: "boolean"
258
+ },
259
+ runtimePlugins: {
260
+ description: "Array of runtime plugins to be applied",
261
+ type: "array",
262
+ items: { anyOf: [{ type: "string" }, {
263
+ type: "array",
264
+ items: [{ type: "string" }, { type: "object" }],
265
+ minItems: 2,
266
+ maxItems: 2
267
+ }] }
268
+ }
269
+ },
270
+ required: ["name", "exposes"]
362
271
  };
272
+
273
+ //#endregion
274
+ exports.default = ContainerPlugin_default;
363
275
  //# sourceMappingURL=ContainerPlugin.js.map