@module-federation/enhanced 0.2.0-canary.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +169 -0
  3. package/dist/package.json +83 -0
  4. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +57 -0
  5. package/dist/src/declarations/plugins/container/Dependency.d.ts +285 -0
  6. package/dist/src/declarations/plugins/container/Module.d.ts +138 -0
  7. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +33 -0
  8. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +4 -0
  9. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +28 -0
  10. package/dist/src/declarations/plugins/container/Template.d.ts +198 -0
  11. package/dist/src/declarations/plugins/container/WebpackError.d.ts +32 -0
  12. package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +140 -0
  13. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +74 -0
  14. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +67 -0
  15. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +78 -0
  16. package/dist/src/index.d.ts +14 -0
  17. package/dist/src/index.js +37 -0
  18. package/dist/src/index.js.map +1 -0
  19. package/dist/src/lib/Constants.js +125 -0
  20. package/dist/src/lib/Constants.js.map +1 -0
  21. package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
  22. package/{src → dist/src}/lib/RuntimeGlobals.js +144 -74
  23. package/dist/src/lib/RuntimeGlobals.js.map +1 -0
  24. package/{src → dist/src}/lib/container/AsyncBoundaryPlugin.d.ts +3 -4
  25. package/dist/src/lib/container/AsyncBoundaryPlugin.js +198 -0
  26. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
  27. package/dist/src/lib/container/ContainerEntryDependency.d.ts +24 -0
  28. package/dist/src/lib/container/ContainerEntryDependency.js +39 -0
  29. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -0
  30. package/dist/src/lib/container/ContainerEntryModule.d.ts +75 -0
  31. package/dist/src/lib/container/ContainerEntryModule.js +240 -0
  32. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -0
  33. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -0
  34. package/dist/src/lib/container/ContainerEntryModuleFactory.js +30 -0
  35. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
  36. package/dist/src/lib/container/ContainerExposedDependency.d.ts +19 -0
  37. package/dist/src/lib/container/ContainerExposedDependency.js +49 -0
  38. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -0
  39. package/dist/src/lib/container/ContainerPlugin.d.ts +13 -0
  40. package/dist/src/lib/container/ContainerPlugin.js +188 -0
  41. package/dist/src/lib/container/ContainerPlugin.js.map +1 -0
  42. package/{src → dist/src}/lib/container/ContainerReferencePlugin.d.ts +3 -3
  43. package/dist/src/lib/container/ContainerReferencePlugin.js +102 -0
  44. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -0
  45. package/dist/src/lib/container/FallbackDependency.d.ts +15 -0
  46. package/dist/src/lib/container/FallbackDependency.js +47 -0
  47. package/dist/src/lib/container/FallbackDependency.js.map +1 -0
  48. package/dist/src/lib/container/FallbackItemDependency.d.ts +3 -0
  49. package/dist/src/lib/container/FallbackItemDependency.js +26 -0
  50. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -0
  51. package/dist/src/lib/container/FallbackModule.d.ts +54 -0
  52. package/dist/src/lib/container/FallbackModule.js +152 -0
  53. package/dist/src/lib/container/FallbackModule.js.map +1 -0
  54. package/dist/src/lib/container/FallbackModuleFactory.d.ts +11 -0
  55. package/dist/src/lib/container/FallbackModuleFactory.js +28 -0
  56. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -0
  57. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +14 -0
  58. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +64 -0
  59. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
  60. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +17 -0
  61. package/dist/src/lib/container/ModuleFederationPlugin.js +128 -0
  62. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -0
  63. package/dist/src/lib/container/RemoteModule.d.ts +90 -0
  64. package/dist/src/lib/container/RemoteModule.js +148 -0
  65. package/dist/src/lib/container/RemoteModule.js.map +1 -0
  66. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -0
  67. package/dist/src/lib/container/RemoteRuntimeModule.js +101 -0
  68. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -0
  69. package/{src → dist/src}/lib/container/RemoteToExternalDependency.d.ts +3 -9
  70. package/dist/src/lib/container/RemoteToExternalDependency.js +26 -0
  71. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -0
  72. package/dist/src/lib/container/constant.d.ts +3 -0
  73. package/dist/src/lib/container/constant.js +12 -0
  74. package/dist/src/lib/container/constant.js.map +1 -0
  75. package/{src → dist/src}/lib/container/options.d.ts +12 -4
  76. package/{src → dist/src}/lib/container/options.js +32 -42
  77. package/dist/src/lib/container/options.js.map +1 -0
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +13 -0
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +49 -0
  80. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -0
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +17 -0
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +209 -0
  83. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -0
  84. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +5 -0
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js +26 -0
  86. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -0
  87. package/dist/src/lib/container/runtime/utils.d.ts +16 -0
  88. package/dist/src/lib/container/runtime/utils.js +83 -0
  89. package/dist/src/lib/container/runtime/utils.js.map +1 -0
  90. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -0
  91. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
  92. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
  93. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +99 -0
  94. package/dist/src/lib/sharing/ConsumeSharedModule.js +206 -0
  95. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
  96. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +30 -0
  97. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +245 -0
  98. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
  99. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +31 -0
  100. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +124 -0
  101. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
  102. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -0
  103. package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
  104. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
  105. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +36 -0
  106. package/dist/src/lib/sharing/ProvideSharedDependency.js +70 -0
  107. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
  108. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +67 -0
  109. package/dist/src/lib/sharing/ProvideSharedModule.js +186 -0
  110. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
  111. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +18 -0
  112. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
  113. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
  114. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +47 -0
  115. package/dist/src/lib/sharing/ProvideSharedPlugin.js +195 -0
  116. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
  117. package/dist/src/lib/sharing/SharePlugin.d.ts +41 -0
  118. package/dist/src/lib/sharing/SharePlugin.js +79 -0
  119. package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
  120. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +14 -0
  121. package/dist/src/lib/sharing/ShareRuntimeModule.js +102 -0
  122. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
  123. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -0
  124. package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
  125. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
  126. package/dist/src/lib/sharing/utils.d.ts +37 -0
  127. package/{src → dist/src}/lib/sharing/utils.js +109 -81
  128. package/dist/src/lib/sharing/utils.js.map +1 -0
  129. package/dist/src/rspack.d.ts +1 -0
  130. package/dist/src/rspack.js +6 -0
  131. package/dist/src/rspack.js.map +1 -0
  132. package/{src → dist/src}/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +1 -1
  133. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
  134. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
  135. package/dist/src/runtime.d.ts +1 -0
  136. package/dist/src/runtime.js +18 -0
  137. package/dist/src/runtime.js.map +1 -0
  138. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -0
  139. package/dist/src/schemas/container/ContainerPlugin.check.js +2318 -0
  140. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -0
  141. package/dist/src/schemas/container/ContainerPlugin.d.ts +289 -0
  142. package/dist/src/schemas/container/ContainerPlugin.js +326 -0
  143. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -0
  144. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +7 -0
  145. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +939 -0
  146. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -0
  147. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +87 -0
  148. package/dist/src/schemas/container/ContainerReferencePlugin.js +132 -0
  149. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -0
  150. package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -0
  151. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +4001 -0
  152. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
  153. package/{src → dist/src}/schemas/container/ModuleFederationPlugin.d.ts +197 -4
  154. package/{src → dist/src}/schemas/container/ModuleFederationPlugin.js +349 -177
  155. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
  156. package/{src/schemas/container/ModuleFederationPlugin.check.d.ts → dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts} +2 -2
  157. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +434 -0
  158. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -0
  159. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +104 -0
  160. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +119 -0
  161. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -0
  162. package/dist/src/types/runtime.d.ts +7 -0
  163. package/dist/src/types/runtime.js +3 -0
  164. package/dist/src/types/runtime.js.map +1 -0
  165. package/dist/src/webpack.d.ts +2 -0
  166. package/dist/src/webpack.js +9 -0
  167. package/dist/src/webpack.js.map +1 -0
  168. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +8 -0
  169. package/dist/src/wrapper/AsyncBoundaryPlugin.js +19 -0
  170. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -0
  171. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +8 -0
  172. package/dist/src/wrapper/ConsumeSharedPlugin.js +19 -0
  173. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -0
  174. package/dist/src/wrapper/ContainerPlugin.d.ts +8 -0
  175. package/dist/src/wrapper/ContainerPlugin.js +19 -0
  176. package/dist/src/wrapper/ContainerPlugin.js.map +1 -0
  177. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +8 -0
  178. package/dist/src/wrapper/ContainerReferencePlugin.js +19 -0
  179. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -0
  180. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +9 -0
  181. package/dist/src/wrapper/FederationRuntimePlugin.js +22 -0
  182. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -0
  183. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +7 -0
  184. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +19 -0
  185. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -0
  186. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +8 -0
  187. package/dist/src/wrapper/ModuleFederationPlugin.js +39 -0
  188. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -0
  189. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +8 -0
  190. package/dist/src/wrapper/ProvideSharedPlugin.js +19 -0
  191. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -0
  192. package/dist/src/wrapper/SharePlugin.d.ts +8 -0
  193. package/dist/src/wrapper/SharePlugin.js +19 -0
  194. package/dist/src/wrapper/SharePlugin.js.map +1 -0
  195. package/package.json +73 -7
  196. package/global.d.js +0 -14
  197. package/global.d.js.map +0 -1
  198. package/pullts.d.ts +0 -1
  199. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +0 -14
  200. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +0 -1
  201. package/src/declarations/plugins/container/ContainerPlugin.d.js +0 -12
  202. package/src/declarations/plugins/container/ContainerPlugin.d.js.map +0 -1
  203. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +0 -12
  204. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +0 -1
  205. package/src/declarations/plugins/container/Dependency.d.js +0 -14
  206. package/src/declarations/plugins/container/Dependency.d.js.map +0 -1
  207. package/src/declarations/plugins/container/Module.d.js +0 -3
  208. package/src/declarations/plugins/container/Module.d.js.map +0 -1
  209. package/src/declarations/plugins/container/ModuleFactory.d.js +0 -3
  210. package/src/declarations/plugins/container/ModuleFactory.d.js.map +0 -1
  211. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +0 -12
  212. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +0 -1
  213. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +0 -6
  214. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +0 -1
  215. package/src/declarations/plugins/container/StaticExportsDependency.d.js +0 -14
  216. package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +0 -1
  217. package/src/declarations/plugins/container/Template.d.js +0 -4
  218. package/src/declarations/plugins/container/Template.d.js.map +0 -1
  219. package/src/declarations/plugins/container/WebpackError.d.js +0 -3
  220. package/src/declarations/plugins/container/WebpackError.d.js.map +0 -1
  221. package/src/declarations/plugins/container/WebpackOptions.d.js +0 -6
  222. package/src/declarations/plugins/container/WebpackOptions.d.js.map +0 -1
  223. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +0 -12
  224. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  225. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +0 -12
  226. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +0 -1
  227. package/src/declarations/plugins/sharing/SharePlugin.d.js +0 -12
  228. package/src/declarations/plugins/sharing/SharePlugin.d.js.map +0 -1
  229. package/src/index.d.ts +0 -7
  230. package/src/index.js +0 -47
  231. package/src/index.js.map +0 -1
  232. package/src/lib/Constants.js +0 -103
  233. package/src/lib/Constants.js.map +0 -1
  234. package/src/lib/RuntimeGlobals.d.ts +0 -1
  235. package/src/lib/RuntimeGlobals.js.map +0 -1
  236. package/src/lib/container/AsyncBoundaryPlugin.js +0 -184
  237. package/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
  238. package/src/lib/container/ContainerEntryDependency.d.js +0 -4
  239. package/src/lib/container/ContainerEntryDependency.d.js.map +0 -1
  240. package/src/lib/container/ContainerEntryDependency.d.ts +0 -20
  241. package/src/lib/container/ContainerEntryDependency.js +0 -47
  242. package/src/lib/container/ContainerEntryDependency.js.map +0 -1
  243. package/src/lib/container/ContainerEntryModule.d.js +0 -14
  244. package/src/lib/container/ContainerEntryModule.d.js.map +0 -1
  245. package/src/lib/container/ContainerEntryModule.d.ts +0 -85
  246. package/src/lib/container/ContainerEntryModule.js +0 -281
  247. package/src/lib/container/ContainerEntryModule.js.map +0 -1
  248. package/src/lib/container/ContainerEntryModuleFactory.d.js +0 -4
  249. package/src/lib/container/ContainerEntryModuleFactory.d.js.map +0 -1
  250. package/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -10
  251. package/src/lib/container/ContainerEntryModuleFactory.js +0 -37
  252. package/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
  253. package/src/lib/container/ContainerExposedDependency.d.js +0 -4
  254. package/src/lib/container/ContainerExposedDependency.d.js.map +0 -1
  255. package/src/lib/container/ContainerExposedDependency.d.ts +0 -26
  256. package/src/lib/container/ContainerExposedDependency.js +0 -57
  257. package/src/lib/container/ContainerExposedDependency.js.map +0 -1
  258. package/src/lib/container/ContainerPlugin.d.js +0 -4
  259. package/src/lib/container/ContainerPlugin.d.js.map +0 -1
  260. package/src/lib/container/ContainerPlugin.d.ts +0 -11
  261. package/src/lib/container/ContainerPlugin.js +0 -92
  262. package/src/lib/container/ContainerPlugin.js.map +0 -1
  263. package/src/lib/container/ContainerReferencePlugin.d.js +0 -4
  264. package/src/lib/container/ContainerReferencePlugin.d.js.map +0 -1
  265. package/src/lib/container/ContainerReferencePlugin.js +0 -141
  266. package/src/lib/container/ContainerReferencePlugin.js.map +0 -1
  267. package/src/lib/container/FallbackDependency.d.js +0 -14
  268. package/src/lib/container/FallbackDependency.d.js.map +0 -1
  269. package/src/lib/container/FallbackDependency.d.ts +0 -25
  270. package/src/lib/container/FallbackDependency.js +0 -59
  271. package/src/lib/container/FallbackDependency.js.map +0 -1
  272. package/src/lib/container/FallbackItemDependency.d.js +0 -4
  273. package/src/lib/container/FallbackItemDependency.d.js.map +0 -1
  274. package/src/lib/container/FallbackItemDependency.d.ts +0 -10
  275. package/src/lib/container/FallbackItemDependency.js +0 -37
  276. package/src/lib/container/FallbackItemDependency.js.map +0 -1
  277. package/src/lib/container/FallbackModule.d.js +0 -4
  278. package/src/lib/container/FallbackModule.d.js.map +0 -1
  279. package/src/lib/container/FallbackModule.d.ts +0 -73
  280. package/src/lib/container/FallbackModule.js +0 -153
  281. package/src/lib/container/FallbackModule.js.map +0 -1
  282. package/src/lib/container/FallbackModuleFactory.d.js +0 -4
  283. package/src/lib/container/FallbackModuleFactory.d.js.map +0 -1
  284. package/src/lib/container/FallbackModuleFactory.d.ts +0 -10
  285. package/src/lib/container/FallbackModuleFactory.js +0 -35
  286. package/src/lib/container/FallbackModuleFactory.js.map +0 -1
  287. package/src/lib/container/HoistContainerReferencesPlugin.d.ts +0 -19
  288. package/src/lib/container/HoistContainerReferencesPlugin.js +0 -78
  289. package/src/lib/container/HoistContainerReferencesPlugin.js.map +0 -1
  290. package/src/lib/container/ModuleFederationPlugin.d.js +0 -4
  291. package/src/lib/container/ModuleFederationPlugin.d.js.map +0 -1
  292. package/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
  293. package/src/lib/container/ModuleFederationPlugin.js +0 -85
  294. package/src/lib/container/ModuleFederationPlugin.js.map +0 -1
  295. package/src/lib/container/ModuleFederationPluginTypes.d.js +0 -12
  296. package/src/lib/container/ModuleFederationPluginTypes.d.js.map +0 -1
  297. package/src/lib/container/RemoteModule.d.js +0 -13
  298. package/src/lib/container/RemoteModule.d.js.map +0 -1
  299. package/src/lib/container/RemoteModule.d.ts +0 -76
  300. package/src/lib/container/RemoteModule.js +0 -151
  301. package/src/lib/container/RemoteModule.js.map +0 -1
  302. package/src/lib/container/RemoteRuntimeModule.d.js +0 -13
  303. package/src/lib/container/RemoteRuntimeModule.d.js.map +0 -1
  304. package/src/lib/container/RemoteRuntimeModule.d.ts +0 -9
  305. package/src/lib/container/RemoteRuntimeModule.js +0 -124
  306. package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
  307. package/src/lib/container/RemoteToExternalDependency.d.js +0 -19
  308. package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
  309. package/src/lib/container/RemoteToExternalDependency.js +0 -37
  310. package/src/lib/container/RemoteToExternalDependency.js.map +0 -1
  311. package/src/lib/container/options.d.js +0 -6
  312. package/src/lib/container/options.d.js.map +0 -1
  313. package/src/lib/container/options.js.map +0 -1
  314. package/src/lib/inversion/ContainerInversionPlugin.d.ts +0 -1
  315. package/src/lib/inversion/ContainerInversionPlugin.js +0 -3
  316. package/src/lib/inversion/ContainerInversionPlugin.js.map +0 -1
  317. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +0 -4
  318. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +0 -1
  319. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -10
  320. package/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -37
  321. package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
  322. package/src/lib/sharing/ConsumeSharedModule.d.js +0 -4
  323. package/src/lib/sharing/ConsumeSharedModule.d.js.map +0 -1
  324. package/src/lib/sharing/ConsumeSharedModule.d.ts +0 -106
  325. package/src/lib/sharing/ConsumeSharedModule.js +0 -235
  326. package/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
  327. package/src/lib/sharing/ConsumeSharedPlugin.d.js +0 -4
  328. package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  329. package/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -8
  330. package/src/lib/sharing/ConsumeSharedPlugin.js +0 -274
  331. package/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
  332. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +0 -4
  333. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +0 -1
  334. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -13
  335. package/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -294
  336. package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
  337. package/src/lib/sharing/ProvideForSharedDependency.d.js +0 -4
  338. package/src/lib/sharing/ProvideForSharedDependency.d.js.map +0 -1
  339. package/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -11
  340. package/src/lib/sharing/ProvideForSharedDependency.js +0 -38
  341. package/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
  342. package/src/lib/sharing/ProvideSharedDependency.d.js +0 -14
  343. package/src/lib/sharing/ProvideSharedDependency.d.js.map +0 -1
  344. package/src/lib/sharing/ProvideSharedDependency.d.ts +0 -32
  345. package/src/lib/sharing/ProvideSharedDependency.js +0 -69
  346. package/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
  347. package/src/lib/sharing/ProvideSharedModule.d.js +0 -4
  348. package/src/lib/sharing/ProvideSharedModule.d.js.map +0 -1
  349. package/src/lib/sharing/ProvideSharedModule.d.ts +0 -79
  350. package/src/lib/sharing/ProvideSharedModule.js +0 -203
  351. package/src/lib/sharing/ProvideSharedModule.js.map +0 -1
  352. package/src/lib/sharing/ProvideSharedModuleFactory.d.js +0 -4
  353. package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +0 -1
  354. package/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -11
  355. package/src/lib/sharing/ProvideSharedModuleFactory.js +0 -36
  356. package/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
  357. package/src/lib/sharing/ProvideSharedPlugin.d.js +0 -4
  358. package/src/lib/sharing/ProvideSharedPlugin.d.js.map +0 -1
  359. package/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -34
  360. package/src/lib/sharing/ProvideSharedPlugin.js +0 -182
  361. package/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
  362. package/src/lib/sharing/SharePlugin.d.js +0 -4
  363. package/src/lib/sharing/SharePlugin.d.js.map +0 -1
  364. package/src/lib/sharing/SharePlugin.d.ts +0 -15
  365. package/src/lib/sharing/SharePlugin.js +0 -77
  366. package/src/lib/sharing/SharePlugin.js.map +0 -1
  367. package/src/lib/sharing/ShareRuntimeModule.d.js +0 -4
  368. package/src/lib/sharing/ShareRuntimeModule.d.js.map +0 -1
  369. package/src/lib/sharing/ShareRuntimeModule.d.ts +0 -9
  370. package/src/lib/sharing/ShareRuntimeModule.js +0 -161
  371. package/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
  372. package/src/lib/sharing/resolveMatchedConfigs.d.js +0 -6
  373. package/src/lib/sharing/resolveMatchedConfigs.d.js.map +0 -1
  374. package/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -8
  375. package/src/lib/sharing/resolveMatchedConfigs.js +0 -73
  376. package/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
  377. package/src/lib/sharing/utils.d.js +0 -6
  378. package/src/lib/sharing/utils.d.js.map +0 -1
  379. package/src/lib/sharing/utils.d.ts +0 -33
  380. package/src/lib/sharing/utils.js.map +0 -1
  381. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -34
  382. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
  383. package/src/runtime/ModuleInfoRuntimeModule.d.ts +0 -16
  384. package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
  385. package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
  386. package/src/runtime/ModuleInfoRuntimePlugin.d.ts +0 -5
  387. package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
  388. package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
  389. package/src/schemas/container/ModuleFederationPlugin.check.js +0 -2245
  390. package/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
  391. package/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
  392. /package/{src → dist/src}/lib/Constants.d.ts +0 -0
@@ -1,46 +1,63 @@
1
- //@ts-nocheck
2
1
  "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function() {
9
- return _default;
10
- }
11
- });
12
- const _default = {
2
+ //@ts-nocheck
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const runtimePlugin = {
5
+ type: 'array',
6
+ items: {
7
+ anyOf: [
8
+ {
9
+ type: 'string',
10
+ minLength: 1,
11
+ description: 'Runtime Plugin File Path.',
12
+ },
13
+ {
14
+ type: 'object',
15
+ required: ['import', 'async'],
16
+ properties: {
17
+ import: {
18
+ type: 'string',
19
+ minLength: 1,
20
+ description: 'Runtime Plugin File Path.',
21
+ },
22
+ async: {
23
+ type: 'boolean',
24
+ },
25
+ },
26
+ additionalProperties: false,
27
+ },
28
+ ],
29
+ },
30
+ };
31
+ exports.default = {
13
32
  definitions: {
14
33
  AmdContainer: {
15
34
  description: 'Add a container for define/require functions in the AMD module.',
16
35
  type: 'string',
17
- minLength: 1
36
+ minLength: 1,
18
37
  },
19
38
  AuxiliaryComment: {
20
39
  description: 'Add a comment in the UMD wrapper.',
21
40
  anyOf: [
22
41
  {
23
42
  description: 'Append the same comment above each import style.',
24
- type: 'string'
43
+ type: 'string',
25
44
  },
26
45
  {
27
- $ref: '#/definitions/LibraryCustomUmdCommentObject'
28
- }
29
- ]
46
+ $ref: '#/definitions/LibraryCustomUmdCommentObject',
47
+ },
48
+ ],
30
49
  },
31
50
  EntryRuntime: {
32
51
  description: 'The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.',
33
52
  anyOf: [
34
53
  {
35
- enum: [
36
- false
37
- ]
54
+ enum: [false],
38
55
  },
39
56
  {
40
57
  type: 'string',
41
- minLength: 1
42
- }
43
- ]
58
+ minLength: 1,
59
+ },
60
+ ],
44
61
  },
45
62
  Exposes: {
46
63
  description: 'Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.',
@@ -51,18 +68,18 @@ const _default = {
51
68
  description: 'Modules that should be exposed by this container.',
52
69
  anyOf: [
53
70
  {
54
- $ref: '#/definitions/ExposesItem'
71
+ $ref: '#/definitions/ExposesItem',
55
72
  },
56
73
  {
57
- $ref: '#/definitions/ExposesObject'
58
- }
59
- ]
60
- }
74
+ $ref: '#/definitions/ExposesObject',
75
+ },
76
+ ],
77
+ },
61
78
  },
62
79
  {
63
- $ref: '#/definitions/ExposesObject'
64
- }
65
- ]
80
+ $ref: '#/definitions/ExposesObject',
81
+ },
82
+ ],
66
83
  },
67
84
  ExposesConfig: {
68
85
  description: 'Advanced configuration for modules that should be exposed by this container.',
@@ -73,33 +90,31 @@ const _default = {
73
90
  description: 'Request to a module that should be exposed by this container.',
74
91
  anyOf: [
75
92
  {
76
- $ref: '#/definitions/ExposesItem'
93
+ $ref: '#/definitions/ExposesItem',
77
94
  },
78
95
  {
79
- $ref: '#/definitions/ExposesItems'
80
- }
81
- ]
96
+ $ref: '#/definitions/ExposesItems',
97
+ },
98
+ ],
82
99
  },
83
100
  name: {
84
101
  description: 'Custom chunk name for the exposed module.',
85
- type: 'string'
86
- }
102
+ type: 'string',
103
+ },
87
104
  },
88
- required: [
89
- 'import'
90
- ]
105
+ required: ['import'],
91
106
  },
92
107
  ExposesItem: {
93
108
  description: 'Module that should be exposed by this container.',
94
109
  type: 'string',
95
- minLength: 1
110
+ minLength: 1,
96
111
  },
97
112
  ExposesItems: {
98
113
  description: 'Modules that should be exposed by this container.',
99
114
  type: 'array',
100
115
  items: {
101
- $ref: '#/definitions/ExposesItem'
102
- }
116
+ $ref: '#/definitions/ExposesItem',
117
+ },
103
118
  },
104
119
  ExposesObject: {
105
120
  description: 'Modules that should be exposed by this container. Property names are used as public paths.',
@@ -108,16 +123,16 @@ const _default = {
108
123
  description: 'Modules that should be exposed by this container.',
109
124
  anyOf: [
110
125
  {
111
- $ref: '#/definitions/ExposesConfig'
126
+ $ref: '#/definitions/ExposesConfig',
112
127
  },
113
128
  {
114
- $ref: '#/definitions/ExposesItem'
129
+ $ref: '#/definitions/ExposesItem',
115
130
  },
116
131
  {
117
- $ref: '#/definitions/ExposesItems'
118
- }
119
- ]
120
- }
132
+ $ref: '#/definitions/ExposesItems',
133
+ },
134
+ ],
135
+ },
121
136
  },
122
137
  ExternalsType: {
123
138
  description: "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
@@ -142,8 +157,8 @@ const _default = {
142
157
  'promise',
143
158
  'import',
144
159
  'script',
145
- 'node-commonjs'
146
- ]
160
+ 'node-commonjs',
161
+ ],
147
162
  },
148
163
  LibraryCustomUmdCommentObject: {
149
164
  description: 'Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.',
@@ -152,21 +167,21 @@ const _default = {
152
167
  properties: {
153
168
  amd: {
154
169
  description: 'Set comment for `amd` section in UMD.',
155
- type: 'string'
170
+ type: 'string',
156
171
  },
157
172
  commonjs: {
158
173
  description: 'Set comment for `commonjs` (exports) section in UMD.',
159
- type: 'string'
174
+ type: 'string',
160
175
  },
161
176
  commonjs2: {
162
177
  description: 'Set comment for `commonjs2` (module.exports) section in UMD.',
163
- type: 'string'
178
+ type: 'string',
164
179
  },
165
180
  root: {
166
181
  description: 'Set comment for `root` (global variable) section in UMD.',
167
- type: 'string'
168
- }
169
- }
182
+ type: 'string',
183
+ },
184
+ },
170
185
  },
171
186
  LibraryCustomUmdObject: {
172
187
  description: 'Description object for all UMD variants of the library name.',
@@ -176,12 +191,12 @@ const _default = {
176
191
  amd: {
177
192
  description: 'Name of the exposed AMD library in the UMD.',
178
193
  type: 'string',
179
- minLength: 1
194
+ minLength: 1,
180
195
  },
181
196
  commonjs: {
182
197
  description: 'Name of the exposed commonjs export in the UMD.',
183
198
  type: 'string',
184
- minLength: 1
199
+ minLength: 1,
185
200
  },
186
201
  root: {
187
202
  description: 'Name of the property exposed globally by a UMD library.',
@@ -191,16 +206,16 @@ const _default = {
191
206
  items: {
192
207
  description: 'Part of the name of the property exposed globally by a UMD library.',
193
208
  type: 'string',
194
- minLength: 1
195
- }
209
+ minLength: 1,
210
+ },
196
211
  },
197
212
  {
198
213
  type: 'string',
199
- minLength: 1
200
- }
201
- ]
202
- }
203
- }
214
+ minLength: 1,
215
+ },
216
+ ],
217
+ },
218
+ },
204
219
  },
205
220
  LibraryExport: {
206
221
  description: 'Specify which export should be exposed as library.',
@@ -210,14 +225,14 @@ const _default = {
210
225
  items: {
211
226
  description: 'Part of the export that should be exposed as library.',
212
227
  type: 'string',
213
- minLength: 1
214
- }
228
+ minLength: 1,
229
+ },
215
230
  },
216
231
  {
217
232
  type: 'string',
218
- minLength: 1
219
- }
220
- ]
233
+ minLength: 1,
234
+ },
235
+ ],
221
236
  },
222
237
  LibraryName: {
223
238
  description: 'The name of the library (some types allow unnamed libraries too).',
@@ -227,18 +242,18 @@ const _default = {
227
242
  items: {
228
243
  description: 'A part of the library name.',
229
244
  type: 'string',
230
- minLength: 1
245
+ minLength: 1,
231
246
  },
232
- minItems: 1
247
+ minItems: 1,
233
248
  },
234
249
  {
235
250
  type: 'string',
236
- minLength: 1
251
+ minLength: 1,
237
252
  },
238
253
  {
239
- $ref: '#/definitions/LibraryCustomUmdObject'
240
- }
241
- ]
254
+ $ref: '#/definitions/LibraryCustomUmdObject',
255
+ },
256
+ ],
242
257
  },
243
258
  LibraryOptions: {
244
259
  description: 'Options for library.',
@@ -246,27 +261,25 @@ const _default = {
246
261
  additionalProperties: false,
247
262
  properties: {
248
263
  amdContainer: {
249
- $ref: '#/definitions/AmdContainer'
264
+ $ref: '#/definitions/AmdContainer',
250
265
  },
251
266
  auxiliaryComment: {
252
- $ref: '#/definitions/AuxiliaryComment'
267
+ $ref: '#/definitions/AuxiliaryComment',
253
268
  },
254
269
  export: {
255
- $ref: '#/definitions/LibraryExport'
270
+ $ref: '#/definitions/LibraryExport',
256
271
  },
257
272
  name: {
258
- $ref: '#/definitions/LibraryName'
273
+ $ref: '#/definitions/LibraryName',
259
274
  },
260
275
  type: {
261
- $ref: '#/definitions/LibraryType'
276
+ $ref: '#/definitions/LibraryType',
262
277
  },
263
278
  umdNamedDefine: {
264
- $ref: '#/definitions/UmdNamedDefine'
265
- }
279
+ $ref: '#/definitions/UmdNamedDefine',
280
+ },
266
281
  },
267
- required: [
268
- 'type'
269
- ]
282
+ required: ['type'],
270
283
  },
271
284
  LibraryType: {
272
285
  description: "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
@@ -290,13 +303,13 @@ const _default = {
290
303
  'umd',
291
304
  'umd2',
292
305
  'jsonp',
293
- 'system'
294
- ]
306
+ 'system',
307
+ ],
295
308
  },
296
309
  {
297
- type: 'string'
298
- }
299
- ]
310
+ type: 'string',
311
+ },
312
+ ],
300
313
  },
301
314
  Remotes: {
302
315
  description: 'Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.',
@@ -307,18 +320,18 @@ const _default = {
307
320
  description: 'Container locations and request scopes from which modules should be resolved and loaded at runtime.',
308
321
  anyOf: [
309
322
  {
310
- $ref: '#/definitions/RemotesItem'
323
+ $ref: '#/definitions/RemotesItem',
311
324
  },
312
325
  {
313
- $ref: '#/definitions/RemotesObject'
314
- }
315
- ]
316
- }
326
+ $ref: '#/definitions/RemotesObject',
327
+ },
328
+ ],
329
+ },
317
330
  },
318
331
  {
319
- $ref: '#/definitions/RemotesObject'
320
- }
321
- ]
332
+ $ref: '#/definitions/RemotesObject',
333
+ },
334
+ ],
322
335
  },
323
336
  RemotesConfig: {
324
337
  description: 'Advanced configuration for container locations from which modules should be resolved and loaded at runtime.',
@@ -329,34 +342,32 @@ const _default = {
329
342
  description: 'Container locations from which modules should be resolved and loaded at runtime.',
330
343
  anyOf: [
331
344
  {
332
- $ref: '#/definitions/RemotesItem'
345
+ $ref: '#/definitions/RemotesItem',
333
346
  },
334
347
  {
335
- $ref: '#/definitions/RemotesItems'
336
- }
337
- ]
348
+ $ref: '#/definitions/RemotesItems',
349
+ },
350
+ ],
338
351
  },
339
352
  shareScope: {
340
353
  description: 'The name of the share scope shared with this remote.',
341
354
  type: 'string',
342
- minLength: 1
343
- }
355
+ minLength: 1,
356
+ },
344
357
  },
345
- required: [
346
- 'external'
347
- ]
358
+ required: ['external'],
348
359
  },
349
360
  RemotesItem: {
350
361
  description: 'Container location from which modules should be resolved and loaded at runtime.',
351
362
  type: 'string',
352
- minLength: 1
363
+ minLength: 1,
353
364
  },
354
365
  RemotesItems: {
355
366
  description: 'Container locations from which modules should be resolved and loaded at runtime.',
356
367
  type: 'array',
357
368
  items: {
358
- $ref: '#/definitions/RemotesItem'
359
- }
369
+ $ref: '#/definitions/RemotesItem',
370
+ },
360
371
  },
361
372
  RemotesObject: {
362
373
  description: 'Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.',
@@ -365,16 +376,16 @@ const _default = {
365
376
  description: 'Container locations from which modules should be resolved and loaded at runtime.',
366
377
  anyOf: [
367
378
  {
368
- $ref: '#/definitions/RemotesConfig'
379
+ $ref: '#/definitions/RemotesConfig',
369
380
  },
370
381
  {
371
- $ref: '#/definitions/RemotesItem'
382
+ $ref: '#/definitions/RemotesItem',
372
383
  },
373
384
  {
374
- $ref: '#/definitions/RemotesItems'
375
- }
376
- ]
377
- }
385
+ $ref: '#/definitions/RemotesItems',
386
+ },
387
+ ],
388
+ },
378
389
  },
379
390
  Shared: {
380
391
  description: 'Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.',
@@ -385,18 +396,18 @@ const _default = {
385
396
  description: 'Modules that should be shared in the share scope.',
386
397
  anyOf: [
387
398
  {
388
- $ref: '#/definitions/SharedItem'
399
+ $ref: '#/definitions/SharedItem',
389
400
  },
390
401
  {
391
- $ref: '#/definitions/SharedObject'
392
- }
393
- ]
394
- }
402
+ $ref: '#/definitions/SharedObject',
403
+ },
404
+ ],
405
+ },
395
406
  },
396
407
  {
397
- $ref: '#/definitions/SharedObject'
398
- }
399
- ]
408
+ $ref: '#/definitions/SharedObject',
409
+ },
410
+ ],
400
411
  },
401
412
  SharedConfig: {
402
413
  description: 'Advanced configuration for modules that should be shared in the share scope.',
@@ -405,81 +416,75 @@ const _default = {
405
416
  properties: {
406
417
  eager: {
407
418
  description: 'Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.',
408
- type: 'boolean'
419
+ type: 'boolean',
409
420
  },
410
421
  import: {
411
422
  description: "Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.",
412
423
  anyOf: [
413
424
  {
414
425
  description: 'No provided or fallback module.',
415
- enum: [
416
- false
417
- ]
426
+ enum: [false],
418
427
  },
419
428
  {
420
- $ref: '#/definitions/SharedItem'
421
- }
422
- ]
429
+ $ref: '#/definitions/SharedItem',
430
+ },
431
+ ],
423
432
  },
424
433
  packageName: {
425
434
  description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
426
435
  type: 'string',
427
- minLength: 1
436
+ minLength: 1,
428
437
  },
429
438
  requiredVersion: {
430
439
  description: 'Version requirement from module in share scope.',
431
440
  anyOf: [
432
441
  {
433
442
  description: 'No version requirement check.',
434
- enum: [
435
- false
436
- ]
443
+ enum: [false],
437
444
  },
438
445
  {
439
446
  description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
440
- type: 'string'
441
- }
442
- ]
447
+ type: 'string',
448
+ },
449
+ ],
443
450
  },
444
451
  shareKey: {
445
452
  description: 'Module is looked up under this key from the share scope.',
446
453
  type: 'string',
447
- minLength: 1
454
+ minLength: 1,
448
455
  },
449
456
  shareScope: {
450
457
  description: 'Share scope name.',
451
458
  type: 'string',
452
- minLength: 1
459
+ minLength: 1,
453
460
  },
454
461
  singleton: {
455
462
  description: 'Allow only a single version of the shared module in share scope (disabled by default).',
456
- type: 'boolean'
463
+ type: 'boolean',
457
464
  },
458
465
  strictVersion: {
459
466
  description: 'Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).',
460
- type: 'boolean'
467
+ type: 'boolean',
461
468
  },
462
469
  version: {
463
470
  description: 'Version of the provided module. Will replace lower matching versions, but not higher.',
464
471
  anyOf: [
465
472
  {
466
473
  description: "Don't provide a version.",
467
- enum: [
468
- false
469
- ]
474
+ enum: [false],
470
475
  },
471
476
  {
472
477
  description: "Version as string. Each part of the version should be separated by a dot '.'.",
473
- type: 'string'
474
- }
475
- ]
476
- }
477
- }
478
+ type: 'string',
479
+ },
480
+ ],
481
+ },
482
+ },
478
483
  },
479
484
  SharedItem: {
480
485
  description: 'A module that should be shared in the share scope.',
481
486
  type: 'string',
482
- minLength: 1
487
+ minLength: 1,
483
488
  },
484
489
  SharedObject: {
485
490
  description: 'Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.',
@@ -488,65 +493,232 @@ const _default = {
488
493
  description: 'Modules that should be shared in the share scope.',
489
494
  anyOf: [
490
495
  {
491
- $ref: '#/definitions/SharedConfig'
496
+ $ref: '#/definitions/SharedConfig',
492
497
  },
493
498
  {
494
- $ref: '#/definitions/SharedItem'
495
- }
496
- ]
497
- }
499
+ $ref: '#/definitions/SharedItem',
500
+ },
501
+ ],
502
+ },
498
503
  },
499
504
  UmdNamedDefine: {
500
505
  description: 'If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.',
501
- type: 'boolean'
502
- }
506
+ type: 'boolean',
507
+ },
508
+ Manifest: {
509
+ description: 'Used to config manifest.',
510
+ type: 'object',
511
+ properties: {
512
+ filePath: {
513
+ description: 'The file path of the vmok manifest.',
514
+ type: 'string',
515
+ },
516
+ disableAssetsAnalyze: {
517
+ description: 'Used to disable assets analyze in dev. If the value is set to true, manifest will neither have shared and exposes fields nor have remotes detail. Generally, it will be set to true in dev if the project is a pure consumer.',
518
+ type: 'boolean',
519
+ },
520
+ },
521
+ },
522
+ DtsRemoteOptions: {
523
+ description: 'Used to config generate types.',
524
+ type: 'object',
525
+ properties: {
526
+ tsConfigPath: {
527
+ description: 'The tsconfig path of the project.',
528
+ type: 'string',
529
+ },
530
+ typesFolder: {
531
+ description: 'The generated folder path of the types.',
532
+ type: 'string',
533
+ },
534
+ compiledTypesFolder: {
535
+ description: 'The compiled folder path of the types.',
536
+ type: 'string',
537
+ },
538
+ deleteTypesFolder: {
539
+ description: 'Whether delete the types folder.',
540
+ type: 'boolean',
541
+ },
542
+ additionalFilesToCompile: {
543
+ description: 'The additional files to compile.',
544
+ type: 'array',
545
+ items: {
546
+ type: 'string',
547
+ },
548
+ },
549
+ compileInChildProcess: {
550
+ description: 'Whether compile types in child process.',
551
+ type: 'boolean',
552
+ },
553
+ compilerInstance: {
554
+ description: 'The compiler instance of the project.',
555
+ enum: ['tsc', 'vue-tsc'],
556
+ },
557
+ generateAPITypes: {
558
+ description: 'Whether generate runtime api types.',
559
+ type: 'boolean',
560
+ },
561
+ abortOnError: {
562
+ description: 'Whether abort the process while generate types failed.',
563
+ type: 'boolean',
564
+ },
565
+ },
566
+ },
567
+ DtsHostOptions: {
568
+ description: 'Used to config consume types.',
569
+ type: 'object',
570
+ properties: {
571
+ typesFolder: {
572
+ description: 'The consumed folder path of the types.',
573
+ type: 'string',
574
+ },
575
+ remoteTypesFolder: {
576
+ description: 'The consumed remote folder path of the types.',
577
+ type: 'string',
578
+ },
579
+ deleteTypesFolder: {
580
+ description: 'Whether delete the types folder.',
581
+ type: 'boolean',
582
+ },
583
+ abortOnError: {
584
+ description: 'Whether abort the process while consume types failed.',
585
+ type: 'boolean',
586
+ },
587
+ maxRetries: {
588
+ description: 'The max retries count of consume types.',
589
+ type: 'number',
590
+ minimum: 1,
591
+ },
592
+ },
593
+ },
594
+ Dts: {
595
+ description: 'Used to get types support.',
596
+ type: 'object',
597
+ properties: {
598
+ generateTypes: {
599
+ description: 'Used to config generate types.',
600
+ ref: '#/definitions/DtsRemoteOptions',
601
+ },
602
+ consumeTypes: {
603
+ description: 'Used to config consume types.',
604
+ ref: '#/definitions/DtsHostOptions',
605
+ },
606
+ extraOptions: {
607
+ description: 'Extra options for DTS Manager.',
608
+ type: 'object',
609
+ additionalProperties: true,
610
+ },
611
+ tsConfigPath: {
612
+ description: 'The tsconfig path of the project.',
613
+ type: 'string',
614
+ },
615
+ implementation: {
616
+ description: 'The implementation of the DTS Manager.',
617
+ type: 'string',
618
+ minLength: 1,
619
+ },
620
+ },
621
+ additionalProperties: false,
622
+ },
623
+ Dev: {
624
+ description: 'Used to config dev.',
625
+ type: 'object',
626
+ properties: {
627
+ disableLiveReload: {
628
+ description: 'Disable live reload.',
629
+ type: 'boolean',
630
+ },
631
+ disableHotTypesReload: {
632
+ description: 'Disable hot types reload.',
633
+ type: 'boolean',
634
+ },
635
+ disableDynamicRemoteTypeHints: {
636
+ description: 'Disable dynamic remote types hints.',
637
+ type: 'boolean',
638
+ },
639
+ },
640
+ },
503
641
  },
504
642
  title: 'ModuleFederationPluginOptions',
505
643
  type: 'object',
506
644
  additionalProperties: false,
507
645
  properties: {
508
646
  exposes: {
509
- $ref: '#/definitions/Exposes'
647
+ $ref: '#/definitions/Exposes',
510
648
  },
511
649
  filename: {
512
650
  description: 'The filename of the container as relative path inside the `output.path` directory.',
513
651
  type: 'string',
514
- absolutePath: false
652
+ absolutePath: false,
515
653
  },
516
- library: {
517
- $ref: '#/definitions/LibraryOptions'
654
+ implementation: {
655
+ description: 'Runtime tools path',
656
+ type: 'string',
657
+ minLength: 1,
518
658
  },
519
- async: {
520
- description: 'Enable async loading of entry chunks.',
521
- type: 'boolean'
659
+ library: {
660
+ $ref: '#/definitions/LibraryOptions',
522
661
  },
523
662
  name: {
524
663
  description: 'The name of the container.',
525
- type: 'string'
664
+ type: 'string',
526
665
  },
527
666
  remoteType: {
528
667
  description: 'The external type of the remote containers.',
529
668
  oneOf: [
530
669
  {
531
- $ref: '#/definitions/ExternalsType'
532
- }
533
- ]
670
+ $ref: '#/definitions/ExternalsType',
671
+ },
672
+ ],
534
673
  },
535
674
  remotes: {
536
- $ref: '#/definitions/Remotes'
675
+ $ref: '#/definitions/Remotes',
537
676
  },
538
677
  runtime: {
539
- $ref: '#/definitions/EntryRuntime'
678
+ $ref: '#/definitions/EntryRuntime',
679
+ },
680
+ runtimePlugins: runtimePlugin,
681
+ manifest: {
682
+ description: 'Used to config manifest.',
683
+ anyOf: [
684
+ {
685
+ $ref: '#/definitions/Manifest',
686
+ },
687
+ {
688
+ type: 'boolean',
689
+ },
690
+ ],
540
691
  },
541
692
  shareScope: {
542
693
  description: "Share scope name used for all shared modules (defaults to 'default').",
543
694
  type: 'string',
544
- minLength: 1
695
+ minLength: 1,
545
696
  },
546
697
  shared: {
547
- $ref: '#/definitions/Shared'
548
- }
549
- }
698
+ $ref: '#/definitions/Shared',
699
+ },
700
+ dts: {
701
+ description: 'Used to get types support.',
702
+ anyOf: [
703
+ {
704
+ $ref: '#/definitions/Dts',
705
+ },
706
+ {
707
+ type: 'boolean',
708
+ },
709
+ ],
710
+ },
711
+ dev: {
712
+ description: 'Dev options.',
713
+ anyOf: [
714
+ {
715
+ $ref: '#/definitions/Dev',
716
+ },
717
+ {
718
+ type: 'boolean',
719
+ },
720
+ ],
721
+ },
722
+ },
550
723
  };
551
-
552
724
  //# sourceMappingURL=ModuleFederationPlugin.js.map