@module-federation/enhanced 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703

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 (289) hide show
  1. package/README.md +1 -1
  2. package/dist/CHANGELOG.md +2678 -0
  3. package/dist/README.md +213 -0
  4. package/dist/rstestmigrate.md +140 -0
  5. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  6. package/dist/src/index.d.ts +22 -18
  7. package/dist/src/index.js +47 -41
  8. package/dist/src/index.js.map +1 -1
  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 +25 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +37 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +104 -79
  18. package/dist/src/lib/container/ContainerEntryModule.js +213 -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 +26 -23
  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 +144 -213
  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 +72 -101
  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 +124 -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 +151 -170
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +83 -74
  51. package/dist/src/lib/container/RemoteModule.js +149 -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 +12 -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 +70 -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 +38 -46
  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 +263 -293
  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/normalizeToPosixPath.d.ts +5 -0
  87. package/dist/src/lib/container/runtime/normalizeToPosixPath.js +20 -0
  88. package/dist/src/lib/container/runtime/normalizeToPosixPath.js.map +1 -0
  89. package/dist/src/lib/container/runtime/utils.d.ts +22 -7
  90. package/dist/src/lib/container/runtime/utils.js +80 -102
  91. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  93. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  94. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -67
  96. package/dist/src/lib/sharing/ConsumeSharedModule.js +190 -214
  97. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  99. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -472
  100. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  101. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  102. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +108 -123
  103. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  105. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  106. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -38
  108. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -74
  109. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -81
  111. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -181
  112. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  114. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  115. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  116. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  117. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -548
  118. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/SharePlugin.d.ts +55 -12
  120. package/dist/src/lib/sharing/SharePlugin.js +91 -91
  121. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  122. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  123. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -99
  124. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  125. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  126. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  127. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +25 -0
  129. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +85 -0
  130. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -0
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +41 -0
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +227 -0
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -0
  134. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +26 -0
  135. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +32 -0
  136. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -0
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +32 -0
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +94 -0
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -0
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +31 -0
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +49 -0
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -0
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +22 -0
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +35 -0
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -0
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +87 -0
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +144 -0
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -0
  149. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +16 -0
  150. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +23 -0
  151. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -0
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +23 -0
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +163 -0
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -0
  155. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +22 -0
  156. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +28 -0
  157. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -0
  158. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +20 -0
  159. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +44 -0
  160. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -0
  161. package/dist/src/lib/sharing/utils.d.ts +27 -23
  162. package/dist/src/lib/sharing/utils.js +224 -366
  163. package/dist/src/lib/sharing/utils.js.map +1 -1
  164. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  165. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  166. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  167. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  168. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  169. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  170. package/dist/src/rspack.d.ts +3 -2
  171. package/dist/src/rspack.js +35 -10
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  174. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  175. package/dist/src/runtime.d.ts +1 -1
  176. package/dist/src/runtime.js +11 -18
  177. package/dist/src/runtime.mjs +3 -0
  178. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  179. package/dist/src/schemas/container/ContainerPlugin.check.js +767 -1220
  180. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  181. package/dist/src/schemas/container/ContainerPlugin.d.ts +267 -268
  182. package/dist/src/schemas/container/ContainerPlugin.js +269 -361
  183. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  185. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  186. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  187. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  188. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  189. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  190. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  191. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  192. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  193. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  194. package/dist/src/schemas/container/ExternalsType.js +8 -11
  195. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3020 -4301
  197. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  198. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +828 -758
  199. package/dist/src/schemas/container/ModuleFederationPlugin.js +788 -993
  200. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -739
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -189
  205. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -233
  206. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -775
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -176
  211. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -224
  212. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  217. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  218. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  219. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  220. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -794
  221. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  222. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -205
  223. package/dist/src/schemas/sharing/SharePlugin.js +256 -253
  224. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  225. package/dist/src/utils.d.ts +3 -0
  226. package/dist/src/utils.js +35 -26
  227. package/dist/src/utils.js.map +1 -1
  228. package/dist/src/webpack.d.ts +2 -2
  229. package/dist/src/webpack.js +6 -40
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -7
  231. package/dist/src/wrapper/AsyncBoundaryPlugin.js +13 -17
  232. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  233. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +32 -0
  234. package/dist/src/wrapper/BaseWrapperPlugin.js +43 -0
  235. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -0
  236. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -7
  237. package/dist/src/wrapper/ConsumeSharedPlugin.js +13 -17
  238. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  239. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -7
  240. package/dist/src/wrapper/ContainerPlugin.js +13 -17
  241. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  242. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -7
  243. package/dist/src/wrapper/ContainerReferencePlugin.js +13 -17
  244. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  245. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  246. package/dist/src/wrapper/FederationModulesPlugin.js +20 -21
  247. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  248. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -8
  249. package/dist/src/wrapper/FederationRuntimePlugin.js +19 -20
  250. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -5
  252. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +13 -16
  253. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  254. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -9
  255. package/dist/src/wrapper/ModuleFederationPlugin.js +71 -104
  256. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  257. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -7
  258. package/dist/src/wrapper/ProvideSharedPlugin.js +13 -17
  259. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  260. package/dist/src/wrapper/SharePlugin.d.ts +10 -7
  261. package/dist/src/wrapper/SharePlugin.js +13 -17
  262. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +10 -0
  264. package/dist/src/wrapper/TreeShakingSharedPlugin.js +15 -0
  265. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -0
  266. package/package.json +27 -29
  267. package/dist/package.json +0 -110
  268. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  269. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  270. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  271. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  272. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  273. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  274. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -82
  275. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -96
  276. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -98
  277. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -108
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  279. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
  280. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  281. package/dist/src/prefetch.d.ts +0 -2
  282. package/dist/src/prefetch.js +0 -8
  283. package/dist/src/prefetch.js.map +0 -1
  284. package/dist/src/rspack.js.map +0 -1
  285. package/dist/src/runtime.js.map +0 -1
  286. package/dist/src/types/runtime.d.ts +0 -10
  287. package/dist/src/types/runtime.js +0 -3
  288. package/dist/src/types/runtime.js.map +0 -1
  289. package/dist/src/webpack.js.map +0 -1
@@ -1,780 +1,603 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validate = void 0;
4
- // @ts-nocheck
5
- /* eslint-disable */
6
- /*
7
- * This file was automatically generated.
8
- * DO NOT MODIFY BY HAND.
9
- */
10
- exports.validate = o;
11
- exports.default = o;
12
- const r = {
13
- type: 'object',
14
- additionalProperties: !1,
15
- properties: {
16
- eager: { type: 'boolean' },
17
- shareKey: { type: 'string', minLength: 1 },
18
- request: { type: 'string', minLength: 1 },
19
- shareScope: {
20
- anyOf: [
21
- { type: 'string', minLength: 1 },
22
- { type: 'array', items: { type: 'string', minLength: 1 } },
23
- ],
24
- },
25
- requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
26
- strictVersion: { type: 'boolean' },
27
- singleton: { type: 'boolean' },
28
- layer: { type: 'string', minLength: 1 },
29
- issuerLayer: { type: 'string', minLength: 1 },
30
- version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
31
- exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
32
- include: { $ref: '#/definitions/IncludeExcludeOptions' },
33
- allowNodeModulesSuffixMatch: { type: 'boolean' },
34
- },
35
- }, e = Object.prototype.hasOwnProperty;
36
- function t(s, { instancePath: n = '', parentData: o, parentDataProperty: a, rootData: i = s, } = {}) {
37
- let l = null, p = 0;
38
- if (0 === p) {
39
- if (!s || 'object' != typeof s || Array.isArray(s))
40
- return (t.errors = [{ params: { type: 'object' } }]), !1;
41
- {
42
- const n = p;
43
- for (const n in s)
44
- if (!e.call(r.properties, n))
45
- return (t.errors = [{ params: { additionalProperty: n } }]), !1;
46
- if (n === p) {
47
- if (void 0 !== s.eager) {
48
- const r = p;
49
- if ('boolean' != typeof s.eager)
50
- return (t.errors = [{ params: { type: 'boolean' } }]), !1;
51
- var f = r === p;
52
- }
53
- else
54
- f = !0;
55
- if (f) {
56
- if (void 0 !== s.shareKey) {
57
- let r = s.shareKey;
58
- const e = p;
59
- if (p === e) {
60
- if ('string' != typeof r)
61
- return (t.errors = [{ params: { type: 'string' } }]), !1;
62
- if (r.length < 1)
63
- return (t.errors = [{ params: {} }]), !1;
64
- }
65
- f = e === p;
66
- }
67
- else
68
- f = !0;
69
- if (f) {
70
- if (void 0 !== s.request) {
71
- let r = s.request;
72
- const e = p;
73
- if (p === e) {
74
- if ('string' != typeof r)
75
- return (t.errors = [{ params: { type: 'string' } }]), !1;
76
- if (r.length < 1)
77
- return (t.errors = [{ params: {} }]), !1;
78
- }
79
- f = e === p;
80
- }
81
- else
82
- f = !0;
83
- if (f) {
84
- if (void 0 !== s.shareScope) {
85
- let r = s.shareScope;
86
- const e = p, n = p;
87
- let o = !1;
88
- const a = p;
89
- if (p === a)
90
- if ('string' == typeof r) {
91
- if (r.length < 1) {
92
- const r = { params: {} };
93
- null === l ? (l = [r]) : l.push(r), p++;
94
- }
95
- }
96
- else {
97
- const r = { params: { type: 'string' } };
98
- null === l ? (l = [r]) : l.push(r), p++;
99
- }
100
- var u = a === p;
101
- if (((o = o || u), !o)) {
102
- const e = p;
103
- if (p === e)
104
- if (Array.isArray(r)) {
105
- const e = r.length;
106
- for (let t = 0; t < e; t++) {
107
- let e = r[t];
108
- const s = p;
109
- if (p === s)
110
- if ('string' == typeof e) {
111
- if (e.length < 1) {
112
- const r = { params: {} };
113
- null === l ? (l = [r]) : l.push(r), p++;
114
- }
115
- }
116
- else {
117
- const r = { params: { type: 'string' } };
118
- null === l ? (l = [r]) : l.push(r), p++;
119
- }
120
- if (s !== p)
121
- break;
122
- }
123
- }
124
- else {
125
- const r = { params: { type: 'array' } };
126
- null === l ? (l = [r]) : l.push(r), p++;
127
- }
128
- (u = e === p), (o = o || u);
129
- }
130
- if (!o) {
131
- const r = { params: {} };
132
- return (null === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
133
- }
134
- (p = n),
135
- null !== l && (n ? (l.length = n) : (l = null)),
136
- (f = e === p);
137
- }
138
- else
139
- f = !0;
140
- if (f) {
141
- if (void 0 !== s.requiredVersion) {
142
- let e = s.requiredVersion;
143
- const n = p, o = p;
144
- let a = !1;
145
- const i = p;
146
- if (!1 !== e) {
147
- const e = {
148
- params: {
149
- allowedValues: r.properties.requiredVersion.anyOf[0].enum,
150
- },
151
- };
152
- null === l ? (l = [e]) : l.push(e), p++;
153
- }
154
- var c = i === p;
155
- if (((a = a || c), !a)) {
156
- const r = p;
157
- if ('string' != typeof e) {
158
- const r = { params: { type: 'string' } };
159
- null === l ? (l = [r]) : l.push(r), p++;
160
- }
161
- (c = r === p), (a = a || c);
162
- }
163
- if (!a) {
164
- const r = { params: {} };
165
- return (null === l ? (l = [r]) : l.push(r),
166
- p++,
167
- (t.errors = l),
168
- !1);
169
- }
170
- (p = o),
171
- null !== l && (o ? (l.length = o) : (l = null)),
172
- (f = n === p);
173
- }
174
- else
175
- f = !0;
176
- if (f) {
177
- if (void 0 !== s.strictVersion) {
178
- const r = p;
179
- if ('boolean' != typeof s.strictVersion)
180
- return (t.errors = [{ params: { type: 'boolean' } }]), !1;
181
- f = r === p;
182
- }
183
- else
184
- f = !0;
185
- if (f) {
186
- if (void 0 !== s.singleton) {
187
- const r = p;
188
- if ('boolean' != typeof s.singleton)
189
- return ((t.errors = [{ params: { type: 'boolean' } }]), !1);
190
- f = r === p;
191
- }
192
- else
193
- f = !0;
194
- if (f) {
195
- if (void 0 !== s.layer) {
196
- let r = s.layer;
197
- const e = p;
198
- if (p === e) {
199
- if ('string' != typeof r)
200
- return ((t.errors = [{ params: { type: 'string' } }]), !1);
201
- if (r.length < 1)
202
- return (t.errors = [{ params: {} }]), !1;
203
- }
204
- f = e === p;
205
- }
206
- else
207
- f = !0;
208
- if (f) {
209
- if (void 0 !== s.issuerLayer) {
210
- let r = s.issuerLayer;
211
- const e = p;
212
- if (p === e) {
213
- if ('string' != typeof r)
214
- return ((t.errors = [{ params: { type: 'string' } }]),
215
- !1);
216
- if (r.length < 1)
217
- return (t.errors = [{ params: {} }]), !1;
218
- }
219
- f = e === p;
220
- }
221
- else
222
- f = !0;
223
- if (f) {
224
- if (void 0 !== s.version) {
225
- let e = s.version;
226
- const n = p, o = p;
227
- let a = !1;
228
- const i = p;
229
- if (!1 !== e) {
230
- const e = {
231
- params: {
232
- allowedValues: r.properties.version.anyOf[0].enum,
233
- },
234
- };
235
- null === l ? (l = [e]) : l.push(e), p++;
236
- }
237
- var y = i === p;
238
- if (((a = a || y), !a)) {
239
- const r = p;
240
- if ('string' != typeof e) {
241
- const r = { params: { type: 'string' } };
242
- null === l ? (l = [r]) : l.push(r), p++;
243
- }
244
- (y = r === p), (a = a || y);
245
- }
246
- if (!a) {
247
- const r = { params: {} };
248
- return (null === l ? (l = [r]) : l.push(r),
249
- p++,
250
- (t.errors = l),
251
- !1);
252
- }
253
- (p = o),
254
- null !== l && (o ? (l.length = o) : (l = null)),
255
- (f = n === p);
256
- }
257
- else
258
- f = !0;
259
- if (f) {
260
- if (void 0 !== s.exclude) {
261
- let r = s.exclude;
262
- const e = p, n = p, o = p;
263
- let a = !1;
264
- const i = p;
265
- if (r &&
266
- 'object' == typeof r &&
267
- !Array.isArray(r)) {
268
- let e;
269
- if (void 0 === r.request && (e = 'request')) {
270
- const r = { params: { missingProperty: e } };
271
- null === l ? (l = [r]) : l.push(r), p++;
272
- }
273
- }
274
- var h = i === p;
275
- if (((a = a || h), !a)) {
276
- const e = p;
277
- if (r &&
278
- 'object' == typeof r &&
279
- !Array.isArray(r)) {
280
- let e;
281
- if (void 0 === r.version && (e = 'version')) {
282
- const r = {
283
- params: { missingProperty: e },
284
- };
285
- null === l ? (l = [r]) : l.push(r), p++;
286
- }
287
- }
288
- (h = e === p), (a = a || h);
289
- }
290
- if (!a) {
291
- const r = { params: {} };
292
- return (null === l ? (l = [r]) : l.push(r),
293
- p++,
294
- (t.errors = l),
295
- !1);
296
- }
297
- if (((p = o),
298
- null !== l && (o ? (l.length = o) : (l = null)),
299
- p === n)) {
300
- if (!r ||
301
- 'object' != typeof r ||
302
- Array.isArray(r))
303
- return ((t.errors = [
304
- { params: { type: 'object' } },
305
- ]),
306
- !1);
307
- {
308
- const e = p;
309
- for (const e in r)
310
- if ('request' !== e &&
311
- 'version' !== e &&
312
- 'fallbackVersion' !== e)
313
- return ((t.errors = [
314
- { params: { additionalProperty: e } },
315
- ]),
316
- !1);
317
- if (e === p) {
318
- if (void 0 !== r.request) {
319
- let e = r.request;
320
- const s = p, n = p;
321
- let o = !1;
322
- const a = p;
323
- if ('string' != typeof e) {
324
- const r = {
325
- params: { type: 'string' },
326
- };
327
- null === l ? (l = [r]) : l.push(r), p++;
328
- }
329
- var g = a === p;
330
- if (((o = o || g), !o)) {
331
- const r = p;
332
- if (!(e instanceof RegExp)) {
333
- const r = { params: {} };
334
- null === l ? (l = [r]) : l.push(r),
335
- p++;
336
- }
337
- (g = r === p), (o = o || g);
338
- }
339
- if (!o) {
340
- const r = { params: {} };
341
- return (null === l ? (l = [r]) : l.push(r),
342
- p++,
343
- (t.errors = l),
344
- !1);
345
- }
346
- (p = n),
347
- null !== l &&
348
- (n ? (l.length = n) : (l = null));
349
- var m = s === p;
350
- }
351
- else
352
- m = !0;
353
- if (m) {
354
- if (void 0 !== r.version) {
355
- const e = p;
356
- if ('string' != typeof r.version)
357
- return ((t.errors = [
358
- { params: { type: 'string' } },
359
- ]),
360
- !1);
361
- m = e === p;
362
- }
363
- else
364
- m = !0;
365
- if (m)
366
- if (void 0 !== r.fallbackVersion) {
367
- const e = p;
368
- if ('string' != typeof r.fallbackVersion)
369
- return ((t.errors = [
370
- { params: { type: 'string' } },
371
- ]),
372
- !1);
373
- m = e === p;
374
- }
375
- else
376
- m = !0;
377
- }
378
- }
379
- }
380
- }
381
- f = e === p;
382
- }
383
- else
384
- f = !0;
385
- if (f) {
386
- if (void 0 !== s.include) {
387
- let r = s.include;
388
- const e = p, n = p, o = p;
389
- let a = !1;
390
- const i = p;
391
- if (r &&
392
- 'object' == typeof r &&
393
- !Array.isArray(r)) {
394
- let e;
395
- if (void 0 === r.request && (e = 'request')) {
396
- const r = {
397
- params: { missingProperty: e },
398
- };
399
- null === l ? (l = [r]) : l.push(r), p++;
400
- }
401
- }
402
- var d = i === p;
403
- if (((a = a || d), !a)) {
404
- const e = p;
405
- if (r &&
406
- 'object' == typeof r &&
407
- !Array.isArray(r)) {
408
- let e;
409
- if (void 0 === r.version &&
410
- (e = 'version')) {
411
- const r = {
412
- params: { missingProperty: e },
413
- };
414
- null === l ? (l = [r]) : l.push(r), p++;
415
- }
416
- }
417
- (d = e === p), (a = a || d);
418
- }
419
- if (!a) {
420
- const r = { params: {} };
421
- return (null === l ? (l = [r]) : l.push(r),
422
- p++,
423
- (t.errors = l),
424
- !1);
425
- }
426
- if (((p = o),
427
- null !== l &&
428
- (o ? (l.length = o) : (l = null)),
429
- p === n)) {
430
- if (!r ||
431
- 'object' != typeof r ||
432
- Array.isArray(r))
433
- return ((t.errors = [
434
- { params: { type: 'object' } },
435
- ]),
436
- !1);
437
- {
438
- const e = p;
439
- for (const e in r)
440
- if ('request' !== e &&
441
- 'version' !== e &&
442
- 'fallbackVersion' !== e)
443
- return ((t.errors = [
444
- {
445
- params: { additionalProperty: e },
446
- },
447
- ]),
448
- !1);
449
- if (e === p) {
450
- if (void 0 !== r.request) {
451
- let e = r.request;
452
- const s = p, n = p;
453
- let o = !1;
454
- const a = p;
455
- if ('string' != typeof e) {
456
- const r = {
457
- params: { type: 'string' },
458
- };
459
- null === l ? (l = [r]) : l.push(r),
460
- p++;
461
- }
462
- var v = a === p;
463
- if (((o = o || v), !o)) {
464
- const r = p;
465
- if (!(e instanceof RegExp)) {
466
- const r = { params: {} };
467
- null === l ? (l = [r]) : l.push(r),
468
- p++;
469
- }
470
- (v = r === p), (o = o || v);
471
- }
472
- if (!o) {
473
- const r = { params: {} };
474
- return (null === l ? (l = [r]) : l.push(r),
475
- p++,
476
- (t.errors = l),
477
- !1);
478
- }
479
- (p = n),
480
- null !== l &&
481
- (n ? (l.length = n) : (l = null));
482
- var b = s === p;
483
- }
484
- else
485
- b = !0;
486
- if (b) {
487
- if (void 0 !== r.version) {
488
- const e = p;
489
- if ('string' != typeof r.version)
490
- return ((t.errors = [
491
- { params: { type: 'string' } },
492
- ]),
493
- !1);
494
- b = e === p;
495
- }
496
- else
497
- b = !0;
498
- if (b)
499
- if (void 0 !== r.fallbackVersion) {
500
- const e = p;
501
- if ('string' !=
502
- typeof r.fallbackVersion)
503
- return ((t.errors = [
504
- {
505
- params: { type: 'string' },
506
- },
507
- ]),
508
- !1);
509
- b = e === p;
510
- }
511
- else
512
- b = !0;
513
- }
514
- }
515
- }
516
- }
517
- f = e === p;
518
- }
519
- else
520
- f = !0;
521
- if (f)
522
- if (void 0 !== s.allowNodeModulesSuffixMatch) {
523
- const r = p;
524
- if ('boolean' !=
525
- typeof s.allowNodeModulesSuffixMatch)
526
- return ((t.errors = [
527
- { params: { type: 'boolean' } },
528
- ]),
529
- !1);
530
- f = r === p;
531
- }
532
- else
533
- f = !0;
534
- }
535
- }
536
- }
537
- }
538
- }
539
- }
540
- }
541
- }
542
- }
543
- }
544
- }
545
- }
546
- }
547
- }
548
- return (t.errors = l), 0 === p;
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/sharing/ProvideSharedPlugin.check.ts
5
+ var ProvideSharedPlugin_check_exports = /* @__PURE__ */ require_runtime.__exportAll({
6
+ default: () => ProvideSharedPlugin_check_default,
7
+ validate: () => validate
8
+ });
9
+ function t(s, { instancePath: n = "", parentData: o, parentDataProperty: i, rootData: a = s } = {}) {
10
+ let l = null, p = 0;
11
+ if (0 === p) {
12
+ if (!s || "object" != typeof s || Array.isArray(s)) return t.errors = [{ params: { type: "object" } }], !1;
13
+ {
14
+ const n = p;
15
+ for (const n in s) if (!e.call(r.properties, n)) return t.errors = [{ params: { additionalProperty: n } }], !1;
16
+ if (n === p) {
17
+ if (void 0 !== s.eager) {
18
+ const r = p;
19
+ if ("boolean" != typeof s.eager) return t.errors = [{ params: { type: "boolean" } }], !1;
20
+ var f = r === p;
21
+ } else f = !0;
22
+ if (f) {
23
+ if (void 0 !== s.shareKey) {
24
+ let r = s.shareKey;
25
+ const e = p;
26
+ if (p === e) {
27
+ if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
28
+ if (r.length < 1) return t.errors = [{ params: {} }], !1;
29
+ }
30
+ f = e === p;
31
+ } else f = !0;
32
+ if (f) {
33
+ if (void 0 !== s.request) {
34
+ let r = s.request;
35
+ const e = p;
36
+ if (p === e) {
37
+ if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
38
+ if (r.length < 1) return t.errors = [{ params: {} }], !1;
39
+ }
40
+ f = e === p;
41
+ } else f = !0;
42
+ if (f) {
43
+ if (void 0 !== s.shareScope) {
44
+ let r = s.shareScope;
45
+ const e = p, n = p;
46
+ let o = !1;
47
+ const i = p;
48
+ if (p === i) if ("string" == typeof r) {
49
+ if (r.length < 1) {
50
+ const r = { params: {} };
51
+ null === l ? l = [r] : l.push(r), p++;
52
+ }
53
+ } else {
54
+ const r = { params: { type: "string" } };
55
+ null === l ? l = [r] : l.push(r), p++;
56
+ }
57
+ var u = i === p;
58
+ if (o = o || u, !o) {
59
+ const e = p;
60
+ if (p === e) if (Array.isArray(r)) {
61
+ const e = r.length;
62
+ for (let t = 0; t < e; t++) {
63
+ let e = r[t];
64
+ const s = p;
65
+ if (p === s) if ("string" == typeof e) {
66
+ if (e.length < 1) {
67
+ const r = { params: {} };
68
+ null === l ? l = [r] : l.push(r), p++;
69
+ }
70
+ } else {
71
+ const r = { params: { type: "string" } };
72
+ null === l ? l = [r] : l.push(r), p++;
73
+ }
74
+ if (s !== p) break;
75
+ }
76
+ } else {
77
+ const r = { params: { type: "array" } };
78
+ null === l ? l = [r] : l.push(r), p++;
79
+ }
80
+ u = e === p, o = o || u;
81
+ }
82
+ if (!o) {
83
+ const r = { params: {} };
84
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
85
+ }
86
+ p = n, null !== l && (n ? l.length = n : l = null), f = e === p;
87
+ } else f = !0;
88
+ if (f) {
89
+ if (void 0 !== s.requiredVersion) {
90
+ let e = s.requiredVersion;
91
+ const n = p, o = p;
92
+ let i = !1;
93
+ const a = p;
94
+ if (!1 !== e) {
95
+ const e = { params: { allowedValues: r.properties.requiredVersion.anyOf[0].enum } };
96
+ null === l ? l = [e] : l.push(e), p++;
97
+ }
98
+ var c = a === p;
99
+ if (i = i || c, !i) {
100
+ const r = p;
101
+ if ("string" != typeof e) {
102
+ const r = { params: { type: "string" } };
103
+ null === l ? l = [r] : l.push(r), p++;
104
+ }
105
+ c = r === p, i = i || c;
106
+ }
107
+ if (!i) {
108
+ const r = { params: {} };
109
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
110
+ }
111
+ p = o, null !== l && (o ? l.length = o : l = null), f = n === p;
112
+ } else f = !0;
113
+ if (f) {
114
+ if (void 0 !== s.strictVersion) {
115
+ const r = p;
116
+ if ("boolean" != typeof s.strictVersion) return t.errors = [{ params: { type: "boolean" } }], !1;
117
+ f = r === p;
118
+ } else f = !0;
119
+ if (f) {
120
+ if (void 0 !== s.singleton) {
121
+ const r = p;
122
+ if ("boolean" != typeof s.singleton) return t.errors = [{ params: { type: "boolean" } }], !1;
123
+ f = r === p;
124
+ } else f = !0;
125
+ if (f) {
126
+ if (void 0 !== s.layer) {
127
+ let r = s.layer;
128
+ const e = p;
129
+ if (p === e) {
130
+ if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
131
+ if (r.length < 1) return t.errors = [{ params: {} }], !1;
132
+ }
133
+ f = e === p;
134
+ } else f = !0;
135
+ if (f) {
136
+ if (void 0 !== s.issuerLayer) {
137
+ let r = s.issuerLayer;
138
+ const e = p;
139
+ if (p === e) {
140
+ if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
141
+ if (r.length < 1) return t.errors = [{ params: {} }], !1;
142
+ }
143
+ f = e === p;
144
+ } else f = !0;
145
+ if (f) {
146
+ if (void 0 !== s.version) {
147
+ let e = s.version;
148
+ const n = p, o = p;
149
+ let i = !1;
150
+ const a = p;
151
+ if (!1 !== e) {
152
+ const e = { params: { allowedValues: r.properties.version.anyOf[0].enum } };
153
+ null === l ? l = [e] : l.push(e), p++;
154
+ }
155
+ var y = a === p;
156
+ if (i = i || y, !i) {
157
+ const r = p;
158
+ if ("string" != typeof e) {
159
+ const r = { params: { type: "string" } };
160
+ null === l ? l = [r] : l.push(r), p++;
161
+ }
162
+ y = r === p, i = i || y;
163
+ }
164
+ if (!i) {
165
+ const r = { params: {} };
166
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
167
+ }
168
+ p = o, null !== l && (o ? l.length = o : l = null), f = n === p;
169
+ } else f = !0;
170
+ if (f) {
171
+ if (void 0 !== s.exclude) {
172
+ let r = s.exclude;
173
+ const e = p, n = p, o = p;
174
+ let i = !1;
175
+ const a = p;
176
+ if (r && "object" == typeof r && !Array.isArray(r)) {
177
+ let e;
178
+ if (void 0 === r.request && (e = "request")) {
179
+ const r = { params: { missingProperty: e } };
180
+ null === l ? l = [r] : l.push(r), p++;
181
+ }
182
+ }
183
+ var g = a === p;
184
+ if (i = i || g, !i) {
185
+ const e = p;
186
+ if (r && "object" == typeof r && !Array.isArray(r)) {
187
+ let e;
188
+ if (void 0 === r.version && (e = "version")) {
189
+ const r = { params: { missingProperty: e } };
190
+ null === l ? l = [r] : l.push(r), p++;
191
+ }
192
+ }
193
+ g = e === p, i = i || g;
194
+ }
195
+ if (!i) {
196
+ const r = { params: {} };
197
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
198
+ }
199
+ if (p = o, null !== l && (o ? l.length = o : l = null), p === n) {
200
+ if (!r || "object" != typeof r || Array.isArray(r)) return t.errors = [{ params: { type: "object" } }], !1;
201
+ {
202
+ const e = p;
203
+ for (const e in r) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return t.errors = [{ params: { additionalProperty: e } }], !1;
204
+ if (e === p) {
205
+ if (void 0 !== r.request) {
206
+ let e = r.request;
207
+ const s = p, n = p;
208
+ let o = !1;
209
+ const i = p;
210
+ if ("string" != typeof e) {
211
+ const r = { params: { type: "string" } };
212
+ null === l ? l = [r] : l.push(r), p++;
213
+ }
214
+ var h = i === p;
215
+ if (o = o || h, !o) {
216
+ const r = p;
217
+ if (!(e instanceof RegExp)) {
218
+ const r = { params: {} };
219
+ null === l ? l = [r] : l.push(r), p++;
220
+ }
221
+ h = r === p, o = o || h;
222
+ }
223
+ if (!o) {
224
+ const r = { params: {} };
225
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
226
+ }
227
+ p = n, null !== l && (n ? l.length = n : l = null);
228
+ var m = s === p;
229
+ } else m = !0;
230
+ if (m) {
231
+ if (void 0 !== r.version) {
232
+ const e = p;
233
+ if ("string" != typeof r.version) return t.errors = [{ params: { type: "string" } }], !1;
234
+ m = e === p;
235
+ } else m = !0;
236
+ if (m) if (void 0 !== r.fallbackVersion) {
237
+ const e = p;
238
+ if ("string" != typeof r.fallbackVersion) return t.errors = [{ params: { type: "string" } }], !1;
239
+ m = e === p;
240
+ } else m = !0;
241
+ }
242
+ }
243
+ }
244
+ }
245
+ f = e === p;
246
+ } else f = !0;
247
+ if (f) {
248
+ if (void 0 !== s.include) {
249
+ let r = s.include;
250
+ const e = p, n = p, o = p;
251
+ let i = !1;
252
+ const a = p;
253
+ if (r && "object" == typeof r && !Array.isArray(r)) {
254
+ let e;
255
+ if (void 0 === r.request && (e = "request")) {
256
+ const r = { params: { missingProperty: e } };
257
+ null === l ? l = [r] : l.push(r), p++;
258
+ }
259
+ }
260
+ var d = a === p;
261
+ if (i = i || d, !i) {
262
+ const e = p;
263
+ if (r && "object" == typeof r && !Array.isArray(r)) {
264
+ let e;
265
+ if (void 0 === r.version && (e = "version")) {
266
+ const r = { params: { missingProperty: e } };
267
+ null === l ? l = [r] : l.push(r), p++;
268
+ }
269
+ }
270
+ d = e === p, i = i || d;
271
+ }
272
+ if (!i) {
273
+ const r = { params: {} };
274
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
275
+ }
276
+ if (p = o, null !== l && (o ? l.length = o : l = null), p === n) {
277
+ if (!r || "object" != typeof r || Array.isArray(r)) return t.errors = [{ params: { type: "object" } }], !1;
278
+ {
279
+ const e = p;
280
+ for (const e in r) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return t.errors = [{ params: { additionalProperty: e } }], !1;
281
+ if (e === p) {
282
+ if (void 0 !== r.request) {
283
+ let e = r.request;
284
+ const s = p, n = p;
285
+ let o = !1;
286
+ const i = p;
287
+ if ("string" != typeof e) {
288
+ const r = { params: { type: "string" } };
289
+ null === l ? l = [r] : l.push(r), p++;
290
+ }
291
+ var v = i === p;
292
+ if (o = o || v, !o) {
293
+ const r = p;
294
+ if (!(e instanceof RegExp)) {
295
+ const r = { params: {} };
296
+ null === l ? l = [r] : l.push(r), p++;
297
+ }
298
+ v = r === p, o = o || v;
299
+ }
300
+ if (!o) {
301
+ const r = { params: {} };
302
+ return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
303
+ }
304
+ p = n, null !== l && (n ? l.length = n : l = null);
305
+ var b = s === p;
306
+ } else b = !0;
307
+ if (b) {
308
+ if (void 0 !== r.version) {
309
+ const e = p;
310
+ if ("string" != typeof r.version) return t.errors = [{ params: { type: "string" } }], !1;
311
+ b = e === p;
312
+ } else b = !0;
313
+ if (b) if (void 0 !== r.fallbackVersion) {
314
+ const e = p;
315
+ if ("string" != typeof r.fallbackVersion) return t.errors = [{ params: { type: "string" } }], !1;
316
+ b = e === p;
317
+ } else b = !0;
318
+ }
319
+ }
320
+ }
321
+ }
322
+ f = e === p;
323
+ } else f = !0;
324
+ if (f) {
325
+ if (void 0 !== s.allowNodeModulesSuffixMatch) {
326
+ const r = p;
327
+ if ("boolean" != typeof s.allowNodeModulesSuffixMatch) return t.errors = [{ params: { type: "boolean" } }], !1;
328
+ f = r === p;
329
+ } else f = !0;
330
+ if (f) if (void 0 !== s.treeShakingMode) {
331
+ let e = s.treeShakingMode;
332
+ const n = p;
333
+ if ("string" != typeof e) return t.errors = [{ params: { type: "string" } }], !1;
334
+ if ("server-calc" !== e && "runtime-infer" !== e) return t.errors = [{ params: { allowedValues: r.properties.treeShakingMode.enum } }], !1;
335
+ f = n === p;
336
+ } else f = !0;
337
+ }
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ return t.errors = l, 0 === p;
549
353
  }
550
- function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, rootData: a = r, } = {}) {
551
- let i = null, l = 0;
552
- if (0 === l) {
553
- if (!r || 'object' != typeof r || Array.isArray(r))
554
- return (s.errors = [{ params: { type: 'object' } }]), !1;
555
- for (const n in r) {
556
- let o = r[n];
557
- const f = l, u = l;
558
- let c = !1;
559
- const y = l;
560
- t(o, {
561
- instancePath: e + '/' + n.replace(/~/g, '~0').replace(/\//g, '~1'),
562
- parentData: r,
563
- parentDataProperty: n,
564
- rootData: a,
565
- }) || ((i = null === i ? t.errors : i.concat(t.errors)), (l = i.length));
566
- var p = y === l;
567
- if (((c = c || p), !c)) {
568
- const r = l;
569
- if (l == l)
570
- if ('string' == typeof o) {
571
- if (o.length < 1) {
572
- const r = { params: {} };
573
- null === i ? (i = [r]) : i.push(r), l++;
574
- }
575
- }
576
- else {
577
- const r = { params: { type: 'string' } };
578
- null === i ? (i = [r]) : i.push(r), l++;
579
- }
580
- (p = r === l), (c = c || p);
581
- }
582
- if (!c) {
583
- const r = { params: {} };
584
- return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
585
- }
586
- if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
587
- break;
588
- }
589
- }
590
- return (s.errors = i), 0 === l;
354
+ function s(r, { instancePath: e = "", parentData: n, parentDataProperty: o, rootData: i = r } = {}) {
355
+ let a = null, l = 0;
356
+ if (0 === l) {
357
+ if (!r || "object" != typeof r || Array.isArray(r)) return s.errors = [{ params: { type: "object" } }], !1;
358
+ for (const n in r) {
359
+ let o = r[n];
360
+ const f = l, u = l;
361
+ let c = !1;
362
+ const y = l;
363
+ t(o, {
364
+ instancePath: e + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"),
365
+ parentData: r,
366
+ parentDataProperty: n,
367
+ rootData: i
368
+ }) || (a = null === a ? t.errors : a.concat(t.errors), l = a.length);
369
+ var p = y === l;
370
+ if (c = c || p, !c) {
371
+ const r = l;
372
+ if (l == l) if ("string" == typeof o) {
373
+ if (o.length < 1) {
374
+ const r = { params: {} };
375
+ null === a ? a = [r] : a.push(r), l++;
376
+ }
377
+ } else {
378
+ const r = { params: { type: "string" } };
379
+ null === a ? a = [r] : a.push(r), l++;
380
+ }
381
+ p = r === l, c = c || p;
382
+ }
383
+ if (!c) {
384
+ const r = { params: {} };
385
+ return null === a ? a = [r] : a.push(r), l++, s.errors = a, !1;
386
+ }
387
+ if (l = u, null !== a && (u ? a.length = u : a = null), f !== l) break;
388
+ }
389
+ }
390
+ return s.errors = a, 0 === l;
591
391
  }
592
- function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
593
- let i = null, l = 0;
594
- const p = l;
595
- let f = !1;
596
- const u = l;
597
- if (l === u)
598
- if (Array.isArray(r)) {
599
- const t = r.length;
600
- for (let n = 0; n < t; n++) {
601
- let t = r[n];
602
- const o = l, p = l;
603
- let f = !1;
604
- const u = l;
605
- if (l == l)
606
- if ('string' == typeof t) {
607
- if (t.length < 1) {
608
- const r = { params: {} };
609
- null === i ? (i = [r]) : i.push(r), l++;
610
- }
611
- }
612
- else {
613
- const r = { params: { type: 'string' } };
614
- null === i ? (i = [r]) : i.push(r), l++;
615
- }
616
- var c = u === l;
617
- if (((f = f || c), !f)) {
618
- const o = l;
619
- s(t, {
620
- instancePath: e + '/' + n,
621
- parentData: r,
622
- parentDataProperty: n,
623
- rootData: a,
624
- }) ||
625
- ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
626
- (c = o === l),
627
- (f = f || c);
628
- }
629
- if (f)
630
- (l = p), null !== i && (p ? (i.length = p) : (i = null));
631
- else {
632
- const r = { params: {} };
633
- null === i ? (i = [r]) : i.push(r), l++;
634
- }
635
- if (o !== l)
636
- break;
637
- }
638
- }
639
- else {
640
- const r = { params: { type: 'array' } };
641
- null === i ? (i = [r]) : i.push(r), l++;
642
- }
643
- var y = u === l;
644
- if (((f = f || y), !f)) {
645
- const n = l;
646
- s(r, {
647
- instancePath: e,
648
- parentData: t,
649
- parentDataProperty: o,
650
- rootData: a,
651
- }) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
652
- (y = n === l),
653
- (f = f || y);
654
- }
655
- if (!f) {
656
- const r = { params: {} };
657
- return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
658
- }
659
- return ((l = p),
660
- null !== i && (p ? (i.length = p) : (i = null)),
661
- (n.errors = i),
662
- 0 === l);
392
+ function n(r, { instancePath: e = "", parentData: t, parentDataProperty: o, rootData: i = r } = {}) {
393
+ let a = null, l = 0;
394
+ const p = l;
395
+ let f = !1;
396
+ const u = l;
397
+ if (l === u) if (Array.isArray(r)) {
398
+ const t = r.length;
399
+ for (let n = 0; n < t; n++) {
400
+ let t = r[n];
401
+ const o = l, p = l;
402
+ let f = !1;
403
+ const u = l;
404
+ if (l == l) if ("string" == typeof t) {
405
+ if (t.length < 1) {
406
+ const r = { params: {} };
407
+ null === a ? a = [r] : a.push(r), l++;
408
+ }
409
+ } else {
410
+ const r = { params: { type: "string" } };
411
+ null === a ? a = [r] : a.push(r), l++;
412
+ }
413
+ var c = u === l;
414
+ if (f = f || c, !f) {
415
+ const o = l;
416
+ s(t, {
417
+ instancePath: e + "/" + n,
418
+ parentData: r,
419
+ parentDataProperty: n,
420
+ rootData: i
421
+ }) || (a = null === a ? s.errors : a.concat(s.errors), l = a.length), c = o === l, f = f || c;
422
+ }
423
+ if (f) l = p, null !== a && (p ? a.length = p : a = null);
424
+ else {
425
+ const r = { params: {} };
426
+ null === a ? a = [r] : a.push(r), l++;
427
+ }
428
+ if (o !== l) break;
429
+ }
430
+ } else {
431
+ const r = { params: { type: "array" } };
432
+ null === a ? a = [r] : a.push(r), l++;
433
+ }
434
+ var y = u === l;
435
+ if (f = f || y, !f) {
436
+ const n = l;
437
+ s(r, {
438
+ instancePath: e,
439
+ parentData: t,
440
+ parentDataProperty: o,
441
+ rootData: i
442
+ }) || (a = null === a ? s.errors : a.concat(s.errors), l = a.length), y = n === l, f = f || y;
443
+ }
444
+ if (!f) {
445
+ const r = { params: {} };
446
+ return null === a ? a = [r] : a.push(r), l++, n.errors = a, !1;
447
+ }
448
+ return l = p, null !== a && (p ? a.length = p : a = null), n.errors = a, 0 === l;
663
449
  }
664
- function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
665
- let i = null, l = 0;
666
- if (0 === l) {
667
- if (!r || 'object' != typeof r || Array.isArray(r))
668
- return (o.errors = [{ params: { type: 'object' } }]), !1;
669
- {
670
- let t;
671
- if (void 0 === r.provides && (t = 'provides'))
672
- return (o.errors = [{ params: { missingProperty: t } }]), !1;
673
- {
674
- const t = l;
675
- for (const e in r)
676
- if ('provides' !== e && 'shareScope' !== e && 'experiments' !== e)
677
- return (o.errors = [{ params: { additionalProperty: e } }]), !1;
678
- if (t === l) {
679
- if (void 0 !== r.provides) {
680
- const t = l;
681
- n(r.provides, {
682
- instancePath: e + '/provides',
683
- parentData: r,
684
- parentDataProperty: 'provides',
685
- rootData: a,
686
- }) ||
687
- ((i = null === i ? n.errors : i.concat(n.errors)),
688
- (l = i.length));
689
- var p = t === l;
690
- }
691
- else
692
- p = !0;
693
- if (p) {
694
- if (void 0 !== r.shareScope) {
695
- let e = r.shareScope;
696
- const t = l, s = l;
697
- let n = !1;
698
- const a = l;
699
- if (l === a)
700
- if ('string' == typeof e) {
701
- if (e.length < 1) {
702
- const r = { params: {} };
703
- null === i ? (i = [r]) : i.push(r), l++;
704
- }
705
- }
706
- else {
707
- const r = { params: { type: 'string' } };
708
- null === i ? (i = [r]) : i.push(r), l++;
709
- }
710
- var f = a === l;
711
- if (((n = n || f), !n)) {
712
- const r = l;
713
- if (l === r)
714
- if (Array.isArray(e)) {
715
- const r = e.length;
716
- for (let t = 0; t < r; t++) {
717
- let r = e[t];
718
- const s = l;
719
- if (l === s)
720
- if ('string' == typeof r) {
721
- if (r.length < 1) {
722
- const r = { params: {} };
723
- null === i ? (i = [r]) : i.push(r), l++;
724
- }
725
- }
726
- else {
727
- const r = { params: { type: 'string' } };
728
- null === i ? (i = [r]) : i.push(r), l++;
729
- }
730
- if (s !== l)
731
- break;
732
- }
733
- }
734
- else {
735
- const r = { params: { type: 'array' } };
736
- null === i ? (i = [r]) : i.push(r), l++;
737
- }
738
- (f = r === l), (n = n || f);
739
- }
740
- if (!n) {
741
- const r = { params: {} };
742
- return (null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1);
743
- }
744
- (l = s),
745
- null !== i && (s ? (i.length = s) : (i = null)),
746
- (p = t === l);
747
- }
748
- else
749
- p = !0;
750
- if (p)
751
- if (void 0 !== r.experiments) {
752
- let e = r.experiments;
753
- const t = l;
754
- if (l === t) {
755
- if (!e || 'object' != typeof e || Array.isArray(e))
756
- return (o.errors = [{ params: { type: 'object' } }]), !1;
757
- {
758
- const r = l;
759
- for (const r in e)
760
- if ('allowNodeModulesSuffixMatch' !== r)
761
- return ((o.errors = [{ params: { additionalProperty: r } }]),
762
- !1);
763
- if (r === l &&
764
- void 0 !== e.allowNodeModulesSuffixMatch &&
765
- 'boolean' != typeof e.allowNodeModulesSuffixMatch)
766
- return (o.errors = [{ params: { type: 'boolean' } }]), !1;
767
- }
768
- }
769
- p = t === l;
770
- }
771
- else
772
- p = !0;
773
- }
774
- }
775
- }
776
- }
777
- }
778
- return (o.errors = i), 0 === l;
450
+ function o(r, { instancePath: e = "", parentData: t, parentDataProperty: s, rootData: i = r } = {}) {
451
+ let a = null, l = 0;
452
+ if (0 === l) {
453
+ if (!r || "object" != typeof r || Array.isArray(r)) return o.errors = [{ params: { type: "object" } }], !1;
454
+ {
455
+ let t;
456
+ if (void 0 === r.provides && (t = "provides")) return o.errors = [{ params: { missingProperty: t } }], !1;
457
+ {
458
+ const t = l;
459
+ for (const e in r) if ("provides" !== e && "shareScope" !== e && "experiments" !== e) return o.errors = [{ params: { additionalProperty: e } }], !1;
460
+ if (t === l) {
461
+ if (void 0 !== r.provides) {
462
+ const t = l;
463
+ n(r.provides, {
464
+ instancePath: e + "/provides",
465
+ parentData: r,
466
+ parentDataProperty: "provides",
467
+ rootData: i
468
+ }) || (a = null === a ? n.errors : a.concat(n.errors), l = a.length);
469
+ var p = t === l;
470
+ } else p = !0;
471
+ if (p) {
472
+ if (void 0 !== r.shareScope) {
473
+ let e = r.shareScope;
474
+ const t = l, s = l;
475
+ let n = !1;
476
+ const i = l;
477
+ if (l === i) if ("string" == typeof e) {
478
+ if (e.length < 1) {
479
+ const r = { params: {} };
480
+ null === a ? a = [r] : a.push(r), l++;
481
+ }
482
+ } else {
483
+ const r = { params: { type: "string" } };
484
+ null === a ? a = [r] : a.push(r), l++;
485
+ }
486
+ var f = i === l;
487
+ if (n = n || f, !n) {
488
+ const r = l;
489
+ if (l === r) if (Array.isArray(e)) {
490
+ const r = e.length;
491
+ for (let t = 0; t < r; t++) {
492
+ let r = e[t];
493
+ const s = l;
494
+ if (l === s) if ("string" == typeof r) {
495
+ if (r.length < 1) {
496
+ const r = { params: {} };
497
+ null === a ? a = [r] : a.push(r), l++;
498
+ }
499
+ } else {
500
+ const r = { params: { type: "string" } };
501
+ null === a ? a = [r] : a.push(r), l++;
502
+ }
503
+ if (s !== l) break;
504
+ }
505
+ } else {
506
+ const r = { params: { type: "array" } };
507
+ null === a ? a = [r] : a.push(r), l++;
508
+ }
509
+ f = r === l, n = n || f;
510
+ }
511
+ if (!n) {
512
+ const r = { params: {} };
513
+ return null === a ? a = [r] : a.push(r), l++, o.errors = a, !1;
514
+ }
515
+ l = s, null !== a && (s ? a.length = s : a = null), p = t === l;
516
+ } else p = !0;
517
+ if (p) if (void 0 !== r.experiments) {
518
+ let e = r.experiments;
519
+ const t = l;
520
+ if (l === t) {
521
+ if (!e || "object" != typeof e || Array.isArray(e)) return o.errors = [{ params: { type: "object" } }], !1;
522
+ {
523
+ const r = l;
524
+ for (const r in e) if ("allowNodeModulesSuffixMatch" !== r) return o.errors = [{ params: { additionalProperty: r } }], !1;
525
+ if (r === l && void 0 !== e.allowNodeModulesSuffixMatch && "boolean" != typeof e.allowNodeModulesSuffixMatch) return o.errors = [{ params: { type: "boolean" } }], !1;
526
+ }
527
+ }
528
+ p = t === l;
529
+ } else p = !0;
530
+ }
531
+ }
532
+ }
533
+ }
534
+ }
535
+ return o.errors = a, 0 === l;
779
536
  }
537
+ var validate, ProvideSharedPlugin_check_default, r, e;
538
+ var init_ProvideSharedPlugin_check = require_runtime.__esmMin((() => {
539
+ validate = o;
540
+ ProvideSharedPlugin_check_default = o;
541
+ r = {
542
+ type: "object",
543
+ additionalProperties: !1,
544
+ properties: {
545
+ eager: { type: "boolean" },
546
+ shareKey: {
547
+ type: "string",
548
+ minLength: 1
549
+ },
550
+ request: {
551
+ type: "string",
552
+ minLength: 1
553
+ },
554
+ shareScope: { anyOf: [{
555
+ type: "string",
556
+ minLength: 1
557
+ }, {
558
+ type: "array",
559
+ items: {
560
+ type: "string",
561
+ minLength: 1
562
+ }
563
+ }] },
564
+ requiredVersion: { anyOf: [{ enum: [!1] }, { type: "string" }] },
565
+ strictVersion: { type: "boolean" },
566
+ singleton: { type: "boolean" },
567
+ layer: {
568
+ type: "string",
569
+ minLength: 1
570
+ },
571
+ issuerLayer: {
572
+ type: "string",
573
+ minLength: 1
574
+ },
575
+ version: { anyOf: [{ enum: [!1] }, { type: "string" }] },
576
+ exclude: { $ref: "#/definitions/IncludeExcludeOptions" },
577
+ include: { $ref: "#/definitions/IncludeExcludeOptions" },
578
+ allowNodeModulesSuffixMatch: { type: "boolean" },
579
+ treeShakingMode: {
580
+ type: "string",
581
+ enum: ["server-calc", "runtime-infer"]
582
+ }
583
+ }
584
+ }, e = Object.prototype.hasOwnProperty;
585
+ }));
586
+
587
+ //#endregion
588
+ init_ProvideSharedPlugin_check();
589
+ Object.defineProperty(exports, 'ProvideSharedPlugin_check_exports', {
590
+ enumerable: true,
591
+ get: function () {
592
+ return ProvideSharedPlugin_check_exports;
593
+ }
594
+ });
595
+ exports.default = ProvideSharedPlugin_check_default;
596
+ Object.defineProperty(exports, 'init_ProvideSharedPlugin_check', {
597
+ enumerable: true,
598
+ get: function () {
599
+ return init_ProvideSharedPlugin_check;
600
+ }
601
+ });
602
+ exports.validate = validate;
780
603
  //# sourceMappingURL=ProvideSharedPlugin.check.js.map