@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,488 +1,291 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
- /*
4
- * This file was automatically generated.
5
- * DO NOT MODIFY BY HAND.
6
- * Run `yarn special-lint-fix` to update
7
- */
8
1
  'use strict';
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- function r(e, { instancePath: t = '', parentData: s, parentDataProperty: n, rootData: o = e, } = {}) {
11
- let a = null, l = 0;
12
- if (0 === l) {
13
- if (!e || 'object' != typeof e || Array.isArray(e))
14
- return ((r.errors = [
15
- {
16
- params: {
17
- type: 'object',
18
- },
19
- },
20
- ]),
21
- !1);
22
- for (const t in e) {
23
- let s = e[t];
24
- const n = l, o = l;
25
- let c = !1;
26
- const h = l;
27
- if (l == l)
28
- if (s && 'object' == typeof s && !Array.isArray(s)) {
29
- const r = l;
30
- for (const r in s)
31
- if ('eager' !== r &&
32
- 'requiredVersion' !== r &&
33
- 'shareKey' !== r &&
34
- 'shareScope' !== r &&
35
- 'singleton' !== r &&
36
- 'strictVersion' !== r &&
37
- 'version' !== r &&
38
- 'layer' !== r &&
39
- 'request' !== r) {
40
- const e = {
41
- params: {
42
- additionalProperty: r,
43
- },
44
- };
45
- null === a ? (a = [e]) : a.push(e), l++;
46
- break;
47
- }
48
- if (r === l) {
49
- if (void 0 !== s.request) {
50
- let r = s.request;
51
- const e = l;
52
- if (l === e)
53
- if ('string' == typeof r) {
54
- if (r.length < 1) {
55
- const r = {
56
- params: {},
57
- };
58
- null === a ? (a = [r]) : a.push(r), l++;
59
- }
60
- }
61
- else {
62
- const r = {
63
- params: {
64
- type: 'string',
65
- },
66
- };
67
- null === a ? (a = [r]) : a.push(r), l++;
68
- }
69
- i = e === l;
70
- }
71
- else
72
- i = !0;
73
- if (i) {
74
- if (void 0 !== s.eager) {
75
- const r = l;
76
- if ('boolean' != typeof s.eager) {
77
- const r = {
78
- params: {
79
- type: 'boolean',
80
- },
81
- };
82
- null === a ? (a = [r]) : a.push(r), l++;
83
- }
84
- var i = r === l;
85
- }
86
- else
87
- i = !0;
88
- if (i) {
89
- if (void 0 !== s.requiredVersion) {
90
- let r = s.requiredVersion;
91
- const e = l, t = l;
92
- let n = !1;
93
- const o = l;
94
- if (!1 !== r) {
95
- const r = {
96
- params: {},
97
- };
98
- null === a ? (a = [r]) : a.push(r), l++;
99
- }
100
- var p = o === l;
101
- if (((n = n || p), !n)) {
102
- const e = l;
103
- if ('string' != typeof r) {
104
- const r = {
105
- params: {
106
- type: 'string',
107
- },
108
- };
109
- null === a ? (a = [r]) : a.push(r), l++;
110
- }
111
- (p = e === l), (n = n || p);
112
- }
113
- if (n)
114
- (l = t), null !== a && (t ? (a.length = t) : (a = null));
115
- else {
116
- const r = {
117
- params: {},
118
- };
119
- null === a ? (a = [r]) : a.push(r), l++;
120
- }
121
- i = e === l;
122
- }
123
- else
124
- i = !0;
125
- if (i) {
126
- if (void 0 !== s.shareKey) {
127
- let r = s.shareKey;
128
- const e = l;
129
- if (l === e)
130
- if ('string' == typeof r) {
131
- if (r.length < 1) {
132
- const r = {
133
- params: {},
134
- };
135
- null === a ? (a = [r]) : a.push(r), l++;
136
- }
137
- }
138
- else {
139
- const r = {
140
- params: {
141
- type: 'string',
142
- },
143
- };
144
- null === a ? (a = [r]) : a.push(r), l++;
145
- }
146
- i = e === l;
147
- }
148
- else
149
- i = !0;
150
- if (i) {
151
- if (void 0 !== s.shareScope) {
152
- let r = s.shareScope;
153
- const e = l;
154
- if (l === e)
155
- if ('string' == typeof r) {
156
- if (r.length < 1) {
157
- const r = {
158
- params: {},
159
- };
160
- null === a ? (a = [r]) : a.push(r), l++;
161
- }
162
- }
163
- else {
164
- const r = {
165
- params: {
166
- type: 'string',
167
- },
168
- };
169
- null === a ? (a = [r]) : a.push(r), l++;
170
- }
171
- i = e === l;
172
- }
173
- else
174
- i = !0;
175
- if (i) {
176
- if (void 0 !== s.singleton) {
177
- const r = l;
178
- if ('boolean' != typeof s.singleton) {
179
- const r = {
180
- params: {
181
- type: 'boolean',
182
- },
183
- };
184
- null === a ? (a = [r]) : a.push(r), l++;
185
- }
186
- i = r === l;
187
- }
188
- else
189
- i = !0;
190
- if (i) {
191
- if (void 0 !== s.strictVersion) {
192
- const r = l;
193
- if ('boolean' != typeof s.strictVersion) {
194
- const r = {
195
- params: {
196
- type: 'boolean',
197
- },
198
- };
199
- null === a ? (a = [r]) : a.push(r), l++;
200
- }
201
- i = r === l;
202
- }
203
- else
204
- i = !0;
205
- if (i)
206
- if (void 0 !== s.version) {
207
- let r = s.version;
208
- const e = l, t = l;
209
- let n = !1;
210
- const o = l;
211
- if (!1 !== r) {
212
- const r = {
213
- params: {},
214
- };
215
- null === a ? (a = [r]) : a.push(r), l++;
216
- }
217
- var f = o === l;
218
- if (((n = n || f), !n)) {
219
- const e = l;
220
- if ('string' != typeof r) {
221
- const r = {
222
- params: {
223
- type: 'string',
224
- },
225
- };
226
- null === a ? (a = [r]) : a.push(r), l++;
227
- }
228
- (f = e === l), (n = n || f);
229
- }
230
- if (n)
231
- (l = t),
232
- null !== a && (t ? (a.length = t) : (a = null));
233
- else {
234
- const r = {
235
- params: {},
236
- };
237
- null === a ? (a = [r]) : a.push(r), l++;
238
- }
239
- i = e === l;
240
- }
241
- else
242
- i = !0;
243
- if (i) {
244
- if (void 0 !== s.layer) {
245
- let r = s.layer;
246
- const e = l;
247
- if (l === e)
248
- if ('string' == typeof r) {
249
- if (r.length < 1) {
250
- const r = {
251
- params: {},
252
- };
253
- null === a ? (a = [r]) : a.push(r), l++;
254
- }
255
- }
256
- else {
257
- const r = {
258
- params: {
259
- type: 'string',
260
- },
261
- };
262
- null === a ? (a = [r]) : a.push(r), l++;
263
- }
264
- i = e === l;
265
- }
266
- else
267
- i = !0;
268
- }
269
- }
270
- }
271
- }
272
- }
273
- }
274
- }
275
- }
276
- }
277
- else {
278
- const r = {
279
- params: {
280
- type: 'object',
281
- },
282
- };
283
- null === a ? (a = [r]) : a.push(r), l++;
284
- }
285
- var u = h === l;
286
- if (((c = c || u), !c)) {
287
- const r = l;
288
- if (l == l)
289
- if ('string' == typeof s) {
290
- if (s.length < 1) {
291
- const r = {
292
- params: {},
293
- };
294
- null === a ? (a = [r]) : a.push(r), l++;
295
- }
296
- }
297
- else {
298
- const r = {
299
- params: {
300
- type: 'string',
301
- },
302
- };
303
- null === a ? (a = [r]) : a.push(r), l++;
304
- }
305
- (u = r === l), (c = c || u);
306
- }
307
- if (!c) {
308
- const e = {
309
- params: {},
310
- };
311
- return null === a ? (a = [e]) : a.push(e), l++, (r.errors = a), !1;
312
- }
313
- if (((l = o), null !== a && (o ? (a.length = o) : (a = null)), n !== l))
314
- break;
315
- }
316
- }
317
- return (r.errors = a), 0 === l;
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+ const require_runtime = require('../../_virtual/_rolldown/runtime.js');
5
+
6
+ //#region src/schemas/sharing/ProviderSharedPlugin.check.ts
7
+ function r(e, { instancePath: t = "", parentData: s, parentDataProperty: n, rootData: o = e } = {}) {
8
+ let a = null, l = 0;
9
+ if (0 === l) {
10
+ if (!e || "object" != typeof e || Array.isArray(e)) return r.errors = [{ params: { type: "object" } }], !1;
11
+ for (const t in e) {
12
+ let s = e[t];
13
+ const n = l, o = l;
14
+ let c = !1;
15
+ const h = l;
16
+ if (l == l) if (s && "object" == typeof s && !Array.isArray(s)) {
17
+ const r = l;
18
+ for (const r in s) if ("eager" !== r && "requiredVersion" !== r && "shareKey" !== r && "shareScope" !== r && "singleton" !== r && "strictVersion" !== r && "version" !== r && "layer" !== r && "request" !== r) {
19
+ const e = { params: { additionalProperty: r } };
20
+ null === a ? a = [e] : a.push(e), l++;
21
+ break;
22
+ }
23
+ if (r === l) {
24
+ if (void 0 !== s.request) {
25
+ let r = s.request;
26
+ const e = l;
27
+ if (l === e) if ("string" == typeof r) {
28
+ if (r.length < 1) {
29
+ const r = { params: {} };
30
+ null === a ? a = [r] : a.push(r), l++;
31
+ }
32
+ } else {
33
+ const r = { params: { type: "string" } };
34
+ null === a ? a = [r] : a.push(r), l++;
35
+ }
36
+ i = e === l;
37
+ } else i = !0;
38
+ if (i) {
39
+ if (void 0 !== s.eager) {
40
+ const r = l;
41
+ if ("boolean" != typeof s.eager) {
42
+ const r = { params: { type: "boolean" } };
43
+ null === a ? a = [r] : a.push(r), l++;
44
+ }
45
+ var i = r === l;
46
+ } else i = !0;
47
+ if (i) {
48
+ if (void 0 !== s.requiredVersion) {
49
+ let r = s.requiredVersion;
50
+ const e = l, t = l;
51
+ let n = !1;
52
+ const o = l;
53
+ if (!1 !== r) {
54
+ const r = { params: {} };
55
+ null === a ? a = [r] : a.push(r), l++;
56
+ }
57
+ var p = o === l;
58
+ if (n = n || p, !n) {
59
+ const e = l;
60
+ if ("string" != typeof r) {
61
+ const r = { params: { type: "string" } };
62
+ null === a ? a = [r] : a.push(r), l++;
63
+ }
64
+ p = e === l, n = n || p;
65
+ }
66
+ if (n) l = t, null !== a && (t ? a.length = t : a = null);
67
+ else {
68
+ const r = { params: {} };
69
+ null === a ? a = [r] : a.push(r), l++;
70
+ }
71
+ i = e === l;
72
+ } else i = !0;
73
+ if (i) {
74
+ if (void 0 !== s.shareKey) {
75
+ let r = s.shareKey;
76
+ const e = l;
77
+ if (l === e) if ("string" == typeof r) {
78
+ if (r.length < 1) {
79
+ const r = { params: {} };
80
+ null === a ? a = [r] : a.push(r), l++;
81
+ }
82
+ } else {
83
+ const r = { params: { type: "string" } };
84
+ null === a ? a = [r] : a.push(r), l++;
85
+ }
86
+ i = e === l;
87
+ } else i = !0;
88
+ if (i) {
89
+ if (void 0 !== s.shareScope) {
90
+ let r = s.shareScope;
91
+ const e = l;
92
+ if (l === e) if ("string" == typeof r) {
93
+ if (r.length < 1) {
94
+ const r = { params: {} };
95
+ null === a ? a = [r] : a.push(r), l++;
96
+ }
97
+ } else {
98
+ const r = { params: { type: "string" } };
99
+ null === a ? a = [r] : a.push(r), l++;
100
+ }
101
+ i = e === l;
102
+ } else i = !0;
103
+ if (i) {
104
+ if (void 0 !== s.singleton) {
105
+ const r = l;
106
+ if ("boolean" != typeof s.singleton) {
107
+ const r = { params: { type: "boolean" } };
108
+ null === a ? a = [r] : a.push(r), l++;
109
+ }
110
+ i = r === l;
111
+ } else i = !0;
112
+ if (i) {
113
+ if (void 0 !== s.strictVersion) {
114
+ const r = l;
115
+ if ("boolean" != typeof s.strictVersion) {
116
+ const r = { params: { type: "boolean" } };
117
+ null === a ? a = [r] : a.push(r), l++;
118
+ }
119
+ i = r === l;
120
+ } else i = !0;
121
+ if (i) if (void 0 !== s.version) {
122
+ let r = s.version;
123
+ const e = l, t = l;
124
+ let n = !1;
125
+ const o = l;
126
+ if (!1 !== r) {
127
+ const r = { params: {} };
128
+ null === a ? a = [r] : a.push(r), l++;
129
+ }
130
+ var f = o === l;
131
+ if (n = n || f, !n) {
132
+ const e = l;
133
+ if ("string" != typeof r) {
134
+ const r = { params: { type: "string" } };
135
+ null === a ? a = [r] : a.push(r), l++;
136
+ }
137
+ f = e === l, n = n || f;
138
+ }
139
+ if (n) l = t, null !== a && (t ? a.length = t : a = null);
140
+ else {
141
+ const r = { params: {} };
142
+ null === a ? a = [r] : a.push(r), l++;
143
+ }
144
+ i = e === l;
145
+ } else i = !0;
146
+ if (i) if (void 0 !== s.layer) {
147
+ let r = s.layer;
148
+ const e = l;
149
+ if (l === e) if ("string" == typeof r) {
150
+ if (r.length < 1) {
151
+ const r = { params: {} };
152
+ null === a ? a = [r] : a.push(r), l++;
153
+ }
154
+ } else {
155
+ const r = { params: { type: "string" } };
156
+ null === a ? a = [r] : a.push(r), l++;
157
+ }
158
+ i = e === l;
159
+ } else i = !0;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ } else {
168
+ const r = { params: { type: "object" } };
169
+ null === a ? a = [r] : a.push(r), l++;
170
+ }
171
+ var u = h === l;
172
+ if (c = c || u, !c) {
173
+ const r = l;
174
+ if (l == l) if ("string" == typeof s) {
175
+ if (s.length < 1) {
176
+ const r = { params: {} };
177
+ null === a ? a = [r] : a.push(r), l++;
178
+ }
179
+ } else {
180
+ const r = { params: { type: "string" } };
181
+ null === a ? a = [r] : a.push(r), l++;
182
+ }
183
+ u = r === l, c = c || u;
184
+ }
185
+ if (!c) {
186
+ const e = { params: {} };
187
+ return null === a ? a = [e] : a.push(e), l++, r.errors = a, !1;
188
+ }
189
+ if (l = o, null !== a && (o ? a.length = o : a = null), n !== l) break;
190
+ }
191
+ }
192
+ return r.errors = a, 0 === l;
318
193
  }
319
- function e(t, { instancePath: s = '', parentData: n, parentDataProperty: o, rootData: a = t, } = {}) {
320
- let l = null, i = 0;
321
- const p = i;
322
- let f = !1;
323
- const u = i;
324
- if (i === u)
325
- if (Array.isArray(t)) {
326
- const e = t.length;
327
- for (let n = 0; n < e; n++) {
328
- let e = t[n];
329
- const o = i, p = i;
330
- let f = !1;
331
- const u = i;
332
- if (i == i)
333
- if ('string' == typeof e) {
334
- if (e.length < 1) {
335
- const r = {
336
- params: {},
337
- };
338
- null === l ? (l = [r]) : l.push(r), i++;
339
- }
340
- }
341
- else {
342
- const r = {
343
- params: {
344
- type: 'string',
345
- },
346
- };
347
- null === l ? (l = [r]) : l.push(r), i++;
348
- }
349
- var c = u === i;
350
- if (((f = f || c), !f)) {
351
- const o = i;
352
- r(e, {
353
- instancePath: s + '/' + n,
354
- parentData: t,
355
- parentDataProperty: n,
356
- rootData: a,
357
- }) ||
358
- ((l = null === l ? r.errors : l.concat(r.errors)), (i = l.length)),
359
- (c = o === i),
360
- (f = f || c);
361
- }
362
- if (f)
363
- (i = p), null !== l && (p ? (l.length = p) : (l = null));
364
- else {
365
- const r = {
366
- params: {},
367
- };
368
- null === l ? (l = [r]) : l.push(r), i++;
369
- }
370
- if (o !== i)
371
- break;
372
- }
373
- }
374
- else {
375
- const r = {
376
- params: {
377
- type: 'array',
378
- },
379
- };
380
- null === l ? (l = [r]) : l.push(r), i++;
381
- }
382
- var h = u === i;
383
- if (((f = f || h), !f)) {
384
- const e = i;
385
- r(t, {
386
- instancePath: s,
387
- parentData: n,
388
- parentDataProperty: o,
389
- rootData: a,
390
- }) || ((l = null === l ? r.errors : l.concat(r.errors)), (i = l.length)),
391
- (h = e === i),
392
- (f = f || h);
393
- }
394
- if (!f) {
395
- const r = {
396
- params: {},
397
- };
398
- return null === l ? (l = [r]) : l.push(r), i++, (e.errors = l), !1;
399
- }
400
- return ((i = p),
401
- null !== l && (p ? (l.length = p) : (l = null)),
402
- (e.errors = l),
403
- 0 === i);
194
+ function e(t, { instancePath: s = "", parentData: n, parentDataProperty: o, rootData: a = t } = {}) {
195
+ let l = null, i = 0;
196
+ const p = i;
197
+ let f = !1;
198
+ const u = i;
199
+ if (i === u) if (Array.isArray(t)) {
200
+ const e = t.length;
201
+ for (let n = 0; n < e; n++) {
202
+ let e = t[n];
203
+ const o = i, p = i;
204
+ let f = !1;
205
+ const u = i;
206
+ if (i == i) if ("string" == typeof e) {
207
+ if (e.length < 1) {
208
+ const r = { params: {} };
209
+ null === l ? l = [r] : l.push(r), i++;
210
+ }
211
+ } else {
212
+ const r = { params: { type: "string" } };
213
+ null === l ? l = [r] : l.push(r), i++;
214
+ }
215
+ var c = u === i;
216
+ if (f = f || c, !f) {
217
+ const o = i;
218
+ r(e, {
219
+ instancePath: s + "/" + n,
220
+ parentData: t,
221
+ parentDataProperty: n,
222
+ rootData: a
223
+ }) || (l = null === l ? r.errors : l.concat(r.errors), i = l.length), c = o === i, f = f || c;
224
+ }
225
+ if (f) i = p, null !== l && (p ? l.length = p : l = null);
226
+ else {
227
+ const r = { params: {} };
228
+ null === l ? l = [r] : l.push(r), i++;
229
+ }
230
+ if (o !== i) break;
231
+ }
232
+ } else {
233
+ const r = { params: { type: "array" } };
234
+ null === l ? l = [r] : l.push(r), i++;
235
+ }
236
+ var h = u === i;
237
+ if (f = f || h, !f) {
238
+ const e = i;
239
+ r(t, {
240
+ instancePath: s,
241
+ parentData: n,
242
+ parentDataProperty: o,
243
+ rootData: a
244
+ }) || (l = null === l ? r.errors : l.concat(r.errors), i = l.length), h = e === i, f = f || h;
245
+ }
246
+ if (!f) {
247
+ const r = { params: {} };
248
+ return null === l ? l = [r] : l.push(r), i++, e.errors = l, !1;
249
+ }
250
+ return i = p, null !== l && (p ? l.length = p : l = null), e.errors = l, 0 === i;
404
251
  }
405
- function t(r, { instancePath: s = '', parentData: n, parentDataProperty: o, rootData: a = r, } = {}) {
406
- let l = null, i = 0;
407
- if (0 === i) {
408
- if (!r || 'object' != typeof r || Array.isArray(r))
409
- return ((t.errors = [
410
- {
411
- params: {
412
- type: 'object',
413
- },
414
- },
415
- ]),
416
- !1);
417
- {
418
- let n;
419
- if (void 0 === r.provides && (n = 'provides'))
420
- return ((t.errors = [
421
- {
422
- params: {
423
- missingProperty: n,
424
- },
425
- },
426
- ]),
427
- !1);
428
- {
429
- const n = i;
430
- for (const e in r)
431
- if ('provides' !== e && 'shareScope' !== e)
432
- return ((t.errors = [
433
- {
434
- params: {
435
- additionalProperty: e,
436
- },
437
- },
438
- ]),
439
- !1);
440
- if (n === i) {
441
- if (void 0 !== r.provides) {
442
- const t = i;
443
- e(r.provides, {
444
- instancePath: s + '/provides',
445
- parentData: r,
446
- parentDataProperty: 'provides',
447
- rootData: a,
448
- }) ||
449
- ((l = null === l ? e.errors : l.concat(e.errors)),
450
- (i = l.length));
451
- var p = t === i;
452
- }
453
- else
454
- p = !0;
455
- if (p)
456
- if (void 0 !== r.shareScope) {
457
- let e = r.shareScope;
458
- const s = i;
459
- if (i === s) {
460
- if ('string' != typeof e)
461
- return ((t.errors = [
462
- {
463
- params: {
464
- type: 'string',
465
- },
466
- },
467
- ]),
468
- !1);
469
- if (e.length < 1)
470
- return ((t.errors = [
471
- {
472
- params: {},
473
- },
474
- ]),
475
- !1);
476
- }
477
- p = s === i;
478
- }
479
- else
480
- p = !0;
481
- }
482
- }
483
- }
484
- }
485
- return (t.errors = l), 0 === i;
252
+ function t(r, { instancePath: s = "", parentData: n, parentDataProperty: o, rootData: a = r } = {}) {
253
+ let l = null, i = 0;
254
+ if (0 === i) {
255
+ if (!r || "object" != typeof r || Array.isArray(r)) return t.errors = [{ params: { type: "object" } }], !1;
256
+ {
257
+ let n;
258
+ if (void 0 === r.provides && (n = "provides")) return t.errors = [{ params: { missingProperty: n } }], !1;
259
+ {
260
+ const n = i;
261
+ for (const e in r) if ("provides" !== e && "shareScope" !== e) return t.errors = [{ params: { additionalProperty: e } }], !1;
262
+ if (n === i) {
263
+ if (void 0 !== r.provides) {
264
+ const t = i;
265
+ e(r.provides, {
266
+ instancePath: s + "/provides",
267
+ parentData: r,
268
+ parentDataProperty: "provides",
269
+ rootData: a
270
+ }) || (l = null === l ? e.errors : l.concat(e.errors), i = l.length);
271
+ var p = t === i;
272
+ } else p = !0;
273
+ if (p) if (void 0 !== r.shareScope) {
274
+ let e = r.shareScope;
275
+ const s = i;
276
+ if (i === s) {
277
+ if ("string" != typeof e) return t.errors = [{ params: { type: "string" } }], !1;
278
+ if (e.length < 1) return t.errors = [{ params: {} }], !1;
279
+ }
280
+ p = s === i;
281
+ } else p = !0;
282
+ }
283
+ }
284
+ }
285
+ }
286
+ return t.errors = l, 0 === i;
486
287
  }
288
+
289
+ //#endregion
487
290
  exports.default = t;
488
291
  //# sourceMappingURL=ProviderSharedPlugin.check.js.map