@module-federation/enhanced 0.1.0 → 0.1.2

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 (391) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +164 -6
  3. package/dist/package.json +67 -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/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -0
  25. package/dist/src/lib/container/AsyncBoundaryPlugin.js +183 -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 +250 -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 +213 -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 +16 -0
  58. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +183 -0
  59. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
  60. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +16 -0
  61. package/dist/src/lib/container/ModuleFederationPlugin.js +120 -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/FederationInitModule.d.ts +16 -0
  79. package/dist/src/lib/container/runtime/FederationInitModule.js +89 -0
  80. package/dist/src/lib/container/runtime/FederationInitModule.js.map +1 -0
  81. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +13 -0
  82. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +27 -0
  83. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -0
  84. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +18 -0
  85. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +222 -0
  86. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -0
  87. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +5 -0
  88. package/dist/src/lib/container/runtime/getFederationGlobal.js +24 -0
  89. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -0
  90. package/dist/src/lib/container/runtime/utils.d.ts +16 -0
  91. package/dist/src/lib/container/runtime/utils.js +83 -0
  92. package/dist/src/lib/container/runtime/utils.js.map +1 -0
  93. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -0
  94. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
  95. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
  96. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +99 -0
  97. package/dist/src/lib/sharing/ConsumeSharedModule.js +206 -0
  98. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
  99. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +30 -0
  100. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +245 -0
  101. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
  102. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +31 -0
  103. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -0
  104. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
  105. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -0
  106. package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
  107. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
  108. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +36 -0
  109. package/dist/src/lib/sharing/ProvideSharedDependency.js +70 -0
  110. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
  111. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +67 -0
  112. package/dist/src/lib/sharing/ProvideSharedModule.js +186 -0
  113. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
  114. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +18 -0
  115. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
  116. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
  117. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +47 -0
  118. package/dist/src/lib/sharing/ProvideSharedPlugin.js +195 -0
  119. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
  120. package/dist/src/lib/sharing/SharePlugin.d.ts +41 -0
  121. package/dist/src/lib/sharing/SharePlugin.js +79 -0
  122. package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
  123. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +14 -0
  124. package/dist/src/lib/sharing/ShareRuntimeModule.js +89 -0
  125. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
  126. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -0
  127. package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
  128. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
  129. package/dist/src/lib/sharing/utils.d.ts +37 -0
  130. package/{src → dist/src}/lib/sharing/utils.js +109 -81
  131. package/dist/src/lib/sharing/utils.js.map +1 -0
  132. package/dist/src/rspack.d.ts +1 -0
  133. package/dist/src/rspack.js +6 -0
  134. package/dist/src/rspack.js.map +1 -0
  135. package/{src → dist/src}/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +1 -1
  136. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
  137. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
  138. package/dist/src/runtime.d.ts +1 -0
  139. package/dist/src/runtime.js +18 -0
  140. package/dist/src/runtime.js.map +1 -0
  141. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -0
  142. package/dist/src/schemas/container/ContainerPlugin.check.js +2297 -0
  143. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -0
  144. package/dist/src/schemas/container/ContainerPlugin.d.ts +268 -0
  145. package/dist/src/schemas/container/ContainerPlugin.js +306 -0
  146. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -0
  147. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +7 -0
  148. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +939 -0
  149. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -0
  150. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +87 -0
  151. package/dist/src/schemas/container/ContainerReferencePlugin.js +132 -0
  152. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -0
  153. package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -0
  154. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3980 -0
  155. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
  156. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +601 -0
  157. package/dist/src/schemas/container/ModuleFederationPlugin.js +696 -0
  158. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
  159. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +7 -0
  160. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +434 -0
  161. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -0
  162. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +104 -0
  163. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +119 -0
  164. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -0
  165. package/dist/src/types/runtime.d.ts +7 -0
  166. package/dist/src/types/runtime.js +3 -0
  167. package/dist/src/types/runtime.js.map +1 -0
  168. package/dist/src/webpack.d.ts +1 -0
  169. package/dist/src/webpack.js +9 -0
  170. package/dist/src/webpack.js.map +1 -0
  171. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +8 -0
  172. package/dist/src/wrapper/AsyncBoundaryPlugin.js +19 -0
  173. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -0
  174. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +8 -0
  175. package/dist/src/wrapper/ConsumeSharedPlugin.js +19 -0
  176. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -0
  177. package/dist/src/wrapper/ContainerPlugin.d.ts +8 -0
  178. package/dist/src/wrapper/ContainerPlugin.js +19 -0
  179. package/dist/src/wrapper/ContainerPlugin.js.map +1 -0
  180. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +8 -0
  181. package/dist/src/wrapper/ContainerReferencePlugin.js +19 -0
  182. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -0
  183. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +9 -0
  184. package/dist/src/wrapper/FederationRuntimePlugin.js +22 -0
  185. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -0
  186. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +6 -0
  187. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +18 -0
  188. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -0
  189. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +8 -0
  190. package/dist/src/wrapper/ModuleFederationPlugin.js +24 -0
  191. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -0
  192. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +8 -0
  193. package/dist/src/wrapper/ProvideSharedPlugin.js +19 -0
  194. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -0
  195. package/dist/src/wrapper/SharePlugin.d.ts +8 -0
  196. package/dist/src/wrapper/SharePlugin.js +19 -0
  197. package/dist/src/wrapper/SharePlugin.js.map +1 -0
  198. package/package.json +57 -9
  199. package/CHANGELOG.md +0 -134
  200. package/global.d.js +0 -14
  201. package/global.d.js.map +0 -1
  202. package/pullts.d.ts +0 -1
  203. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +0 -14
  204. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +0 -1
  205. package/src/declarations/plugins/container/ContainerPlugin.d.js +0 -12
  206. package/src/declarations/plugins/container/ContainerPlugin.d.js.map +0 -1
  207. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +0 -12
  208. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +0 -1
  209. package/src/declarations/plugins/container/Dependency.d.js +0 -14
  210. package/src/declarations/plugins/container/Dependency.d.js.map +0 -1
  211. package/src/declarations/plugins/container/Module.d.js +0 -3
  212. package/src/declarations/plugins/container/Module.d.js.map +0 -1
  213. package/src/declarations/plugins/container/ModuleFactory.d.js +0 -3
  214. package/src/declarations/plugins/container/ModuleFactory.d.js.map +0 -1
  215. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +0 -12
  216. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +0 -1
  217. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +0 -6
  218. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +0 -1
  219. package/src/declarations/plugins/container/StaticExportsDependency.d.js +0 -14
  220. package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +0 -1
  221. package/src/declarations/plugins/container/Template.d.js +0 -4
  222. package/src/declarations/plugins/container/Template.d.js.map +0 -1
  223. package/src/declarations/plugins/container/WebpackError.d.js +0 -3
  224. package/src/declarations/plugins/container/WebpackError.d.js.map +0 -1
  225. package/src/declarations/plugins/container/WebpackOptions.d.js +0 -6
  226. package/src/declarations/plugins/container/WebpackOptions.d.js.map +0 -1
  227. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +0 -12
  228. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  229. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +0 -12
  230. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +0 -1
  231. package/src/declarations/plugins/sharing/SharePlugin.d.js +0 -12
  232. package/src/declarations/plugins/sharing/SharePlugin.d.js.map +0 -1
  233. package/src/index.d.ts +0 -7
  234. package/src/index.js +0 -47
  235. package/src/index.js.map +0 -1
  236. package/src/lib/Constants.js +0 -103
  237. package/src/lib/Constants.js.map +0 -1
  238. package/src/lib/RuntimeGlobals.d.ts +0 -1
  239. package/src/lib/RuntimeGlobals.js.map +0 -1
  240. package/src/lib/container/AsyncBoundaryPlugin.d.ts +0 -45
  241. package/src/lib/container/AsyncBoundaryPlugin.js +0 -110
  242. package/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
  243. package/src/lib/container/ContainerEntryDependency.d.js +0 -4
  244. package/src/lib/container/ContainerEntryDependency.d.js.map +0 -1
  245. package/src/lib/container/ContainerEntryDependency.d.ts +0 -20
  246. package/src/lib/container/ContainerEntryDependency.js +0 -47
  247. package/src/lib/container/ContainerEntryDependency.js.map +0 -1
  248. package/src/lib/container/ContainerEntryModule.d.js +0 -14
  249. package/src/lib/container/ContainerEntryModule.d.js.map +0 -1
  250. package/src/lib/container/ContainerEntryModule.d.ts +0 -85
  251. package/src/lib/container/ContainerEntryModule.js +0 -279
  252. package/src/lib/container/ContainerEntryModule.js.map +0 -1
  253. package/src/lib/container/ContainerEntryModuleFactory.d.js +0 -4
  254. package/src/lib/container/ContainerEntryModuleFactory.d.js.map +0 -1
  255. package/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -10
  256. package/src/lib/container/ContainerEntryModuleFactory.js +0 -36
  257. package/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
  258. package/src/lib/container/ContainerExposedDependency.d.js +0 -4
  259. package/src/lib/container/ContainerExposedDependency.d.js.map +0 -1
  260. package/src/lib/container/ContainerExposedDependency.d.ts +0 -26
  261. package/src/lib/container/ContainerExposedDependency.js +0 -57
  262. package/src/lib/container/ContainerExposedDependency.js.map +0 -1
  263. package/src/lib/container/ContainerPlugin.d.js +0 -4
  264. package/src/lib/container/ContainerPlugin.d.js.map +0 -1
  265. package/src/lib/container/ContainerPlugin.d.ts +0 -11
  266. package/src/lib/container/ContainerPlugin.js +0 -92
  267. package/src/lib/container/ContainerPlugin.js.map +0 -1
  268. package/src/lib/container/ContainerReferencePlugin.d.js +0 -4
  269. package/src/lib/container/ContainerReferencePlugin.d.js.map +0 -1
  270. package/src/lib/container/ContainerReferencePlugin.js +0 -139
  271. package/src/lib/container/ContainerReferencePlugin.js.map +0 -1
  272. package/src/lib/container/FallbackDependency.d.js +0 -14
  273. package/src/lib/container/FallbackDependency.d.js.map +0 -1
  274. package/src/lib/container/FallbackDependency.d.ts +0 -25
  275. package/src/lib/container/FallbackDependency.js +0 -59
  276. package/src/lib/container/FallbackDependency.js.map +0 -1
  277. package/src/lib/container/FallbackItemDependency.d.js +0 -4
  278. package/src/lib/container/FallbackItemDependency.d.js.map +0 -1
  279. package/src/lib/container/FallbackItemDependency.d.ts +0 -10
  280. package/src/lib/container/FallbackItemDependency.js +0 -37
  281. package/src/lib/container/FallbackItemDependency.js.map +0 -1
  282. package/src/lib/container/FallbackModule.d.js +0 -4
  283. package/src/lib/container/FallbackModule.d.js.map +0 -1
  284. package/src/lib/container/FallbackModule.d.ts +0 -73
  285. package/src/lib/container/FallbackModule.js +0 -153
  286. package/src/lib/container/FallbackModule.js.map +0 -1
  287. package/src/lib/container/FallbackModuleFactory.d.js +0 -4
  288. package/src/lib/container/FallbackModuleFactory.d.js.map +0 -1
  289. package/src/lib/container/FallbackModuleFactory.d.ts +0 -10
  290. package/src/lib/container/FallbackModuleFactory.js +0 -34
  291. package/src/lib/container/FallbackModuleFactory.js.map +0 -1
  292. package/src/lib/container/ModuleFederationPlugin.d.js +0 -4
  293. package/src/lib/container/ModuleFederationPlugin.d.js.map +0 -1
  294. package/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
  295. package/src/lib/container/ModuleFederationPlugin.js +0 -83
  296. package/src/lib/container/ModuleFederationPlugin.js.map +0 -1
  297. package/src/lib/container/ModuleFederationPluginTypes.d.js +0 -12
  298. package/src/lib/container/ModuleFederationPluginTypes.d.js.map +0 -1
  299. package/src/lib/container/RemoteModule.d.js +0 -13
  300. package/src/lib/container/RemoteModule.d.js.map +0 -1
  301. package/src/lib/container/RemoteModule.d.ts +0 -76
  302. package/src/lib/container/RemoteModule.js +0 -151
  303. package/src/lib/container/RemoteModule.js.map +0 -1
  304. package/src/lib/container/RemoteRuntimeModule.d.js +0 -13
  305. package/src/lib/container/RemoteRuntimeModule.d.js.map +0 -1
  306. package/src/lib/container/RemoteRuntimeModule.d.ts +0 -9
  307. package/src/lib/container/RemoteRuntimeModule.js +0 -125
  308. package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
  309. package/src/lib/container/RemoteToExternalDependency.d.js +0 -19
  310. package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
  311. package/src/lib/container/RemoteToExternalDependency.js +0 -37
  312. package/src/lib/container/RemoteToExternalDependency.js.map +0 -1
  313. package/src/lib/container/options.d.js +0 -6
  314. package/src/lib/container/options.d.js.map +0 -1
  315. package/src/lib/container/options.js.map +0 -1
  316. package/src/lib/inversion/ContainerInversionPlugin.d.ts +0 -1
  317. package/src/lib/inversion/ContainerInversionPlugin.js +0 -3
  318. package/src/lib/inversion/ContainerInversionPlugin.js.map +0 -1
  319. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +0 -4
  320. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +0 -1
  321. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -10
  322. package/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -37
  323. package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
  324. package/src/lib/sharing/ConsumeSharedModule.d.js +0 -4
  325. package/src/lib/sharing/ConsumeSharedModule.d.js.map +0 -1
  326. package/src/lib/sharing/ConsumeSharedModule.d.ts +0 -106
  327. package/src/lib/sharing/ConsumeSharedModule.js +0 -233
  328. package/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
  329. package/src/lib/sharing/ConsumeSharedPlugin.d.js +0 -4
  330. package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  331. package/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -8
  332. package/src/lib/sharing/ConsumeSharedPlugin.js +0 -272
  333. package/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
  334. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +0 -4
  335. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +0 -1
  336. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -13
  337. package/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -293
  338. package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
  339. package/src/lib/sharing/ProvideForSharedDependency.d.js +0 -4
  340. package/src/lib/sharing/ProvideForSharedDependency.d.js.map +0 -1
  341. package/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -11
  342. package/src/lib/sharing/ProvideForSharedDependency.js +0 -38
  343. package/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
  344. package/src/lib/sharing/ProvideSharedDependency.d.js +0 -14
  345. package/src/lib/sharing/ProvideSharedDependency.d.js.map +0 -1
  346. package/src/lib/sharing/ProvideSharedDependency.d.ts +0 -32
  347. package/src/lib/sharing/ProvideSharedDependency.js +0 -69
  348. package/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
  349. package/src/lib/sharing/ProvideSharedModule.d.js +0 -4
  350. package/src/lib/sharing/ProvideSharedModule.d.js.map +0 -1
  351. package/src/lib/sharing/ProvideSharedModule.d.ts +0 -79
  352. package/src/lib/sharing/ProvideSharedModule.js +0 -201
  353. package/src/lib/sharing/ProvideSharedModule.js.map +0 -1
  354. package/src/lib/sharing/ProvideSharedModuleFactory.d.js +0 -4
  355. package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +0 -1
  356. package/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -11
  357. package/src/lib/sharing/ProvideSharedModuleFactory.js +0 -36
  358. package/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
  359. package/src/lib/sharing/ProvideSharedPlugin.d.js +0 -4
  360. package/src/lib/sharing/ProvideSharedPlugin.d.js.map +0 -1
  361. package/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -34
  362. package/src/lib/sharing/ProvideSharedPlugin.js +0 -182
  363. package/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
  364. package/src/lib/sharing/SharePlugin.d.js +0 -4
  365. package/src/lib/sharing/SharePlugin.d.js.map +0 -1
  366. package/src/lib/sharing/SharePlugin.d.ts +0 -15
  367. package/src/lib/sharing/SharePlugin.js +0 -77
  368. package/src/lib/sharing/SharePlugin.js.map +0 -1
  369. package/src/lib/sharing/ShareRuntimeModule.d.js +0 -4
  370. package/src/lib/sharing/ShareRuntimeModule.d.js.map +0 -1
  371. package/src/lib/sharing/ShareRuntimeModule.d.ts +0 -9
  372. package/src/lib/sharing/ShareRuntimeModule.js +0 -159
  373. package/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
  374. package/src/lib/sharing/resolveMatchedConfigs.d.js +0 -6
  375. package/src/lib/sharing/resolveMatchedConfigs.d.js.map +0 -1
  376. package/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -8
  377. package/src/lib/sharing/resolveMatchedConfigs.js +0 -73
  378. package/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
  379. package/src/lib/sharing/utils.d.js +0 -6
  380. package/src/lib/sharing/utils.d.js.map +0 -1
  381. package/src/lib/sharing/utils.d.ts +0 -33
  382. package/src/lib/sharing/utils.js.map +0 -1
  383. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -34
  384. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
  385. package/src/runtime/ModuleInfoRuntimeModule.d.ts +0 -16
  386. package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
  387. package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
  388. package/src/runtime/ModuleInfoRuntimePlugin.d.ts +0 -5
  389. package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
  390. package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
  391. /package/{src → dist/src}/lib/Constants.d.ts +0 -0
@@ -1,103 +0,0 @@
1
- /*
2
- MIT License http://www.opensource.org/licenses/mit-license.php
3
- Author Sean Larkin @TheLarkInn
4
- */ /**
5
- * @type {Readonly<"javascript/auto">}
6
- */ "use strict";
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- function _export(target, all) {
11
- for(var name in all)Object.defineProperty(target, name, {
12
- enumerable: true,
13
- get: all[name]
14
- });
15
- }
16
- _export(exports, {
17
- ASSET_MODULE_TYPE: function() {
18
- return ASSET_MODULE_TYPE;
19
- },
20
- ASSET_MODULE_TYPE_INLINE: function() {
21
- return ASSET_MODULE_TYPE_INLINE;
22
- },
23
- ASSET_MODULE_TYPE_RAW_DATA_URL: function() {
24
- return ASSET_MODULE_TYPE_RAW_DATA_URL;
25
- },
26
- ASSET_MODULE_TYPE_RESOURCE: function() {
27
- return ASSET_MODULE_TYPE_RESOURCE;
28
- },
29
- ASSET_MODULE_TYPE_SOURCE: function() {
30
- return ASSET_MODULE_TYPE_SOURCE;
31
- },
32
- CSS_MODULE_TYPE: function() {
33
- return CSS_MODULE_TYPE;
34
- },
35
- CSS_MODULE_TYPE_AUTO: function() {
36
- return CSS_MODULE_TYPE_AUTO;
37
- },
38
- CSS_MODULE_TYPE_GLOBAL: function() {
39
- return CSS_MODULE_TYPE_GLOBAL;
40
- },
41
- CSS_MODULE_TYPE_MODULE: function() {
42
- return CSS_MODULE_TYPE_MODULE;
43
- },
44
- JAVASCRIPT_MODULE_TYPE_AUTO: function() {
45
- return JAVASCRIPT_MODULE_TYPE_AUTO;
46
- },
47
- JAVASCRIPT_MODULE_TYPE_DYNAMIC: function() {
48
- return JAVASCRIPT_MODULE_TYPE_DYNAMIC;
49
- },
50
- JAVASCRIPT_MODULE_TYPE_ESM: function() {
51
- return JAVASCRIPT_MODULE_TYPE_ESM;
52
- },
53
- JSON_MODULE_TYPE: function() {
54
- return JSON_MODULE_TYPE;
55
- },
56
- WEBASSEMBLY_MODULE_TYPE_ASYNC: function() {
57
- return WEBASSEMBLY_MODULE_TYPE_ASYNC;
58
- },
59
- WEBASSEMBLY_MODULE_TYPE_SYNC: function() {
60
- return WEBASSEMBLY_MODULE_TYPE_SYNC;
61
- },
62
- WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE: function() {
63
- return WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE;
64
- },
65
- WEBPACK_MODULE_TYPE_FALLBACK: function() {
66
- return WEBPACK_MODULE_TYPE_FALLBACK;
67
- },
68
- WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY: function() {
69
- return WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY;
70
- },
71
- WEBPACK_MODULE_TYPE_PROVIDE: function() {
72
- return WEBPACK_MODULE_TYPE_PROVIDE;
73
- },
74
- WEBPACK_MODULE_TYPE_REMOTE: function() {
75
- return WEBPACK_MODULE_TYPE_REMOTE;
76
- },
77
- WEBPACK_MODULE_TYPE_RUNTIME: function() {
78
- return WEBPACK_MODULE_TYPE_RUNTIME;
79
- }
80
- });
81
- const JAVASCRIPT_MODULE_TYPE_AUTO = 'javascript/auto';
82
- const JAVASCRIPT_MODULE_TYPE_DYNAMIC = 'javascript/dynamic';
83
- const JAVASCRIPT_MODULE_TYPE_ESM = 'javascript/esm';
84
- const JSON_MODULE_TYPE = 'json';
85
- const WEBASSEMBLY_MODULE_TYPE_ASYNC = 'webassembly/async';
86
- const WEBASSEMBLY_MODULE_TYPE_SYNC = 'webassembly/sync';
87
- const CSS_MODULE_TYPE = 'css';
88
- const CSS_MODULE_TYPE_GLOBAL = 'css/global';
89
- const CSS_MODULE_TYPE_MODULE = 'css/module';
90
- const CSS_MODULE_TYPE_AUTO = 'css/auto';
91
- const ASSET_MODULE_TYPE = 'asset';
92
- const ASSET_MODULE_TYPE_INLINE = 'asset/inline';
93
- const ASSET_MODULE_TYPE_RESOURCE = 'asset/resource';
94
- const ASSET_MODULE_TYPE_SOURCE = 'asset/source';
95
- const ASSET_MODULE_TYPE_RAW_DATA_URL = 'asset/raw-data-url';
96
- const WEBPACK_MODULE_TYPE_RUNTIME = 'runtime';
97
- const WEBPACK_MODULE_TYPE_FALLBACK = 'fallback-module';
98
- const WEBPACK_MODULE_TYPE_REMOTE = 'remote-module';
99
- const WEBPACK_MODULE_TYPE_PROVIDE = 'provide-module';
100
- const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE = 'consume-shared-module';
101
- const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY = 'lazy-compilation-proxy'; /** @typedef {"javascript/auto" | "javascript/dynamic" | "javascript/esm"} JavaScriptModuleTypes */ /** @typedef {"json"} JSONModuleType */ /** @typedef {"webassembly/async" | "webassembly/sync"} WebAssemblyModuleTypes */ /** @typedef {"css" | "css/global" | "css/module"} CSSModuleTypes */ /** @typedef {"asset" | "asset/inline" | "asset/resource" | "asset/source" | "asset/raw-data-url"} AssetModuleTypes */ /** @typedef {"runtime" | "fallback-module" | "remote-module" | "provide-module" | "consume-shared-module" | "lazy-compilation-proxy"} WebpackModuleTypes */ /** @typedef {string} UnknownModuleTypes */ /** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */
102
-
103
- //# sourceMappingURL=Constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../packages/enhanced/src/lib/Constants.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Sean Larkin @TheLarkInn\n*/\n\n/**\n * @type {Readonly<\"javascript/auto\">}\n */\nexport const JAVASCRIPT_MODULE_TYPE_AUTO: Readonly<'javascript/auto'> =\n 'javascript/auto';\n\n/**\n * @type {Readonly<\"javascript/dynamic\">}\n */\nexport const JAVASCRIPT_MODULE_TYPE_DYNAMIC: Readonly<'javascript/dynamic'> =\n 'javascript/dynamic';\n\n/**\n * @type {Readonly<\"javascript/esm\">}\n * This is the module type used for _strict_ ES Module syntax. This means that all legacy formats\n * that webpack supports (CommonJS, AMD, SystemJS) are not supported.\n */\nexport const JAVASCRIPT_MODULE_TYPE_ESM: Readonly<'javascript/esm'> =\n 'javascript/esm';\n\n/**\n * @type {Readonly<\"json\">}\n * This is the module type used for JSON files. JSON files are always parsed as ES Module.\n */\nexport const JSON_MODULE_TYPE: Readonly<'json'> = 'json';\n\n/**\n * @type {Readonly<\"webassembly/async\">}\n * This is the module type used for WebAssembly modules. In webpack 5 they are always treated as async modules.\n *\n */\nexport const WEBASSEMBLY_MODULE_TYPE_ASYNC: Readonly<'webassembly/async'> =\n 'webassembly/async';\n\n/**\n * @type {Readonly<\"webassembly/sync\">}\n * This is the module type used for WebAssembly modules. In webpack 4 they are always treated as sync modules.\n * There is a legacy option to support this usage in webpack 5 and up.\n */\nexport const WEBASSEMBLY_MODULE_TYPE_SYNC: Readonly<'webassembly/sync'> =\n 'webassembly/sync';\n\n/**\n * @type {Readonly<\"css\">}\n * This is the module type used for CSS files.\n */\nexport const CSS_MODULE_TYPE: Readonly<'css'> = 'css';\n\n/**\n * @type {Readonly<\"css/global\">}\n * This is the module type used for CSS modules files where you need to use `:local` in selector list to hash classes.\n */\nexport const CSS_MODULE_TYPE_GLOBAL: Readonly<'css/global'> = 'css/global';\n\n/**\n * @type {Readonly<\"css/module\">}\n * This is the module type used for CSS modules files, by default all classes are hashed.\n */\nexport const CSS_MODULE_TYPE_MODULE: Readonly<'css/module'> = 'css/module';\n\n/**\n * @type {Readonly<\"css/auto\">}\n * This is the module type used for CSS files, the module will be parsed as CSS modules if it's filename contains `.module.` or `.modules.`.\n */\nexport const CSS_MODULE_TYPE_AUTO: Readonly<'css/auto'> = 'css/auto';\n\n/**\n * @type {Readonly<\"asset\">}\n * This is the module type used for automatically choosing between `asset/inline`, `asset/resource` based on asset size limit (8096).\n */\nexport const ASSET_MODULE_TYPE: Readonly<'asset'> = 'asset';\n\n/**\n * @type {Readonly<\"asset/inline\">}\n * This is the module type used for assets that are inlined as a data URI. This is the equivalent of `url-loader`.\n */\nexport const ASSET_MODULE_TYPE_INLINE: Readonly<'asset/inline'> =\n 'asset/inline';\n\n/**\n * @type {Readonly<\"asset/resource\">}\n * This is the module type used for assets that are copied to the output directory. This is the equivalent of `file-loader`.\n */\nexport const ASSET_MODULE_TYPE_RESOURCE: Readonly<'asset/resource'> =\n 'asset/resource';\n\n/**\n * @type {Readonly<\"asset/source\">}\n * This is the module type used for assets that are imported as source code. This is the equivalent of `raw-loader`.\n */\nexport const ASSET_MODULE_TYPE_SOURCE: Readonly<'asset/source'> =\n 'asset/source';\n\n/**\n * @type {Readonly<\"asset/raw-data-url\">}\n * TODO: Document what this asset type is for. See css-loader tests for its usage.\n */\nexport const ASSET_MODULE_TYPE_RAW_DATA_URL: Readonly<'asset/raw-data-url'> =\n 'asset/raw-data-url';\n\n/**\n * @type {Readonly<\"runtime\">}\n * This is the module type used for the webpack runtime abstractions.\n */\nexport const WEBPACK_MODULE_TYPE_RUNTIME: Readonly<'runtime'> = 'runtime';\n\n/**\n * @type {Readonly<\"fallback-module\">}\n * This is the module type used for the ModuleFederation feature's FallbackModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_FALLBACK: Readonly<'fallback-module'> =\n 'fallback-module';\n\n/**\n * @type {Readonly<\"remote-module\">}\n * This is the module type used for the ModuleFederation feature's RemoteModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_REMOTE: Readonly<'remote-module'> =\n 'remote-module';\n\n/**\n * @type {Readonly<\"provide-module\">}\n * This is the module type used for the ModuleFederation feature's ProvideModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_PROVIDE: Readonly<'provide-module'> =\n 'provide-module';\n\n/**\n * @type {Readonly<\"consume-shared-module\">}\n * This is the module type used for the ModuleFederation feature's ConsumeSharedModule class.\n */\nexport const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE: Readonly<'consume-shared-module'> =\n 'consume-shared-module';\n\n/**\n * @type {Readonly<\"lazy-compilation-proxy\">}\n * Module type used for `experiments.lazyCompilation` feature. See `LazyCompilationPlugin` for more information.\n */\nexport const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY: Readonly<'lazy-compilation-proxy'> =\n 'lazy-compilation-proxy';\n\n/** @typedef {\"javascript/auto\" | \"javascript/dynamic\" | \"javascript/esm\"} JavaScriptModuleTypes */\n/** @typedef {\"json\"} JSONModuleType */\n/** @typedef {\"webassembly/async\" | \"webassembly/sync\"} WebAssemblyModuleTypes */\n/** @typedef {\"css\" | \"css/global\" | \"css/module\"} CSSModuleTypes */\n/** @typedef {\"asset\" | \"asset/inline\" | \"asset/resource\" | \"asset/source\" | \"asset/raw-data-url\"} AssetModuleTypes */\n/** @typedef {\"runtime\" | \"fallback-module\" | \"remote-module\" | \"provide-module\" | \"consume-shared-module\" | \"lazy-compilation-proxy\"} WebpackModuleTypes */\n/** @typedef {string} UnknownModuleTypes */\n/** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */\n"],"names":["ASSET_MODULE_TYPE","ASSET_MODULE_TYPE_INLINE","ASSET_MODULE_TYPE_RAW_DATA_URL","ASSET_MODULE_TYPE_RESOURCE","ASSET_MODULE_TYPE_SOURCE","CSS_MODULE_TYPE","CSS_MODULE_TYPE_AUTO","CSS_MODULE_TYPE_GLOBAL","CSS_MODULE_TYPE_MODULE","JAVASCRIPT_MODULE_TYPE_AUTO","JAVASCRIPT_MODULE_TYPE_DYNAMIC","JAVASCRIPT_MODULE_TYPE_ESM","JSON_MODULE_TYPE","WEBASSEMBLY_MODULE_TYPE_ASYNC","WEBASSEMBLY_MODULE_TYPE_SYNC","WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE","WEBPACK_MODULE_TYPE_FALLBACK","WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY","WEBPACK_MODULE_TYPE_PROVIDE","WEBPACK_MODULE_TYPE_REMOTE","WEBPACK_MODULE_TYPE_RUNTIME"],"mappings":"AAAA;;;AAGA,GAEA;;CAEC;;;;;;;;;;;IAoEYA,iBAAiB;eAAjBA;;IAMAC,wBAAwB;eAAxBA;;IAqBAC,8BAA8B;eAA9BA;;IAdAC,0BAA0B;eAA1BA;;IAOAC,wBAAwB;eAAxBA;;IA5CAC,eAAe;eAAfA;;IAkBAC,oBAAoB;eAApBA;;IAZAC,sBAAsB;eAAtBA;;IAMAC,sBAAsB;eAAtBA;;IAvDAC,2BAA2B;eAA3BA;;IAMAC,8BAA8B;eAA9BA;;IAQAC,0BAA0B;eAA1BA;;IAOAC,gBAAgB;eAAhBA;;IAOAC,6BAA6B;eAA7BA;;IAQAC,4BAA4B;eAA5BA;;IA+FAC,yCAAyC;eAAzCA;;IAvBAC,4BAA4B;eAA5BA;;IA8BAC,0CAA0C;eAA1CA;;IAdAC,2BAA2B;eAA3BA;;IARAC,0BAA0B;eAA1BA;;IAfAC,2BAA2B;eAA3BA;;;AArGN,MAAMX,8BACX;AAKK,MAAMC,iCACX;AAOK,MAAMC,6BACX;AAMK,MAAMC,mBAAqC;AAO3C,MAAMC,gCACX;AAOK,MAAMC,+BACX;AAMK,MAAMT,kBAAmC;AAMzC,MAAME,yBAAiD;AAMvD,MAAMC,yBAAiD;AAMvD,MAAMF,uBAA6C;AAMnD,MAAMN,oBAAuC;AAM7C,MAAMC,2BACX;AAMK,MAAME,6BACX;AAMK,MAAMC,2BACX;AAMK,MAAMF,iCACX;AAMK,MAAMkB,8BAAmD;AAOzD,MAAMJ,+BACX;AAOK,MAAMG,6BACX;AAOK,MAAMD,8BACX;AAMK,MAAMH,4CACX;AAMK,MAAME,6CACX,0BAEF,iGAAiG,IACjG,qCAAqC,IACrC,+EAA+E,IAC/E,kEAAkE,IAClE,oHAAoH,IACpH,0JAA0J,IAC1J,yCAAyC,IACzC,yKAAyK"}
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../packages/enhanced/src/lib/RuntimeGlobals.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n'use strict';\n\n/**\n * the internal require function\n */\nexports.require = '__webpack_require__';\n\n/**\n * access to properties of the internal require function/object\n */\nexports.requireScope = '__webpack_require__.*';\n\n/**\n * the internal exports object\n */\nexports.exports = '__webpack_exports__';\n\n/**\n * top-level this need to be the exports object\n */\nexports.thisAsExports = 'top-level-this-exports';\n\n/**\n * runtime need to return the exports of the last entry module\n */\nexports.returnExportsFromRuntime = 'return-exports-from-runtime';\n\n/**\n * the internal module object\n */\nexports.module = 'module';\n\n/**\n * the internal module object\n */\nexports.moduleId = 'module.id';\n\n/**\n * the internal module object\n */\nexports.moduleLoaded = 'module.loaded';\n\n/**\n * the bundle public path\n */\nexports.publicPath = '__webpack_require__.p';\n\n/**\n * the module id of the entry point\n */\nexports.entryModuleId = '__webpack_require__.s';\n\n/**\n * the module cache\n */\nexports.moduleCache = '__webpack_require__.c';\n\n/**\n * the module functions\n */\nexports.moduleFactories = '__webpack_require__.m';\n\n/**\n * the module functions, with only write access\n */\nexports.moduleFactoriesAddOnly = '__webpack_require__.m (add only)';\n\n/**\n * the chunk ensure function\n */\nexports.ensureChunk = '__webpack_require__.e';\n\n/**\n * an object with handlers to ensure a chunk\n */\nexports.ensureChunkHandlers = '__webpack_require__.f';\n\n/**\n * a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries\n */\nexports.ensureChunkIncludeEntries = '__webpack_require__.f (include entries)';\n\n/**\n * the chunk prefetch function\n */\nexports.prefetchChunk = '__webpack_require__.E';\n\n/**\n * an object with handlers to prefetch a chunk\n */\nexports.prefetchChunkHandlers = '__webpack_require__.F';\n\n/**\n * the chunk preload function\n */\nexports.preloadChunk = '__webpack_require__.G';\n\n/**\n * an object with handlers to preload a chunk\n */\nexports.preloadChunkHandlers = '__webpack_require__.H';\n\n/**\n * the exported property define getters function\n */\nexports.definePropertyGetters = '__webpack_require__.d';\n\n/**\n * define compatibility on export\n */\nexports.makeNamespaceObject = '__webpack_require__.r';\n\n/**\n * create a fake namespace object\n */\nexports.createFakeNamespaceObject = '__webpack_require__.t';\n\n/**\n * compatibility get default export\n */\nexports.compatGetDefaultExport = '__webpack_require__.n';\n\n/**\n * harmony module decorator\n */\nexports.harmonyModuleDecorator = '__webpack_require__.hmd';\n\n/**\n * node.js module decorator\n */\nexports.nodeModuleDecorator = '__webpack_require__.nmd';\n\n/**\n * the webpack hash\n */\nexports.getFullHash = '__webpack_require__.h';\n\n/**\n * an object containing all installed WebAssembly.Instance export objects keyed by module id\n */\nexports.wasmInstances = '__webpack_require__.w';\n\n/**\n * instantiate a wasm instance from module exports object, id, hash and importsObject\n */\nexports.instantiateWasm = '__webpack_require__.v';\n\n/**\n * the uncaught error handler for the webpack runtime\n */\nexports.uncaughtErrorHandler = '__webpack_require__.oe';\n\n/**\n * the script nonce\n */\nexports.scriptNonce = '__webpack_require__.nc';\n\n/**\n * function to load a script tag.\n * Arguments: (url: string, done: (event) => void), key?: string | number, chunkId?: string | number) => void\n * done function is called when loading has finished or timeout occurred.\n * It will attach to existing script tags with data-webpack == uniqueName + \":\" + key or src == url.\n */\nexports.loadScript = '__webpack_require__.l';\n\n/**\n * function to promote a string to a TrustedScript using webpack's Trusted\n * Types policy\n * Arguments: (script: string) => TrustedScript\n */\nexports.createScript = '__webpack_require__.ts';\n\n/**\n * function to promote a string to a TrustedScriptURL using webpack's Trusted\n * Types policy\n * Arguments: (url: string) => TrustedScriptURL\n */\nexports.createScriptUrl = '__webpack_require__.tu';\n\n/**\n * function to return webpack's Trusted Types policy\n * Arguments: () => TrustedTypePolicy\n */\nexports.getTrustedTypesPolicy = '__webpack_require__.tt';\n\n/**\n * a flag when a chunk has a fetch priority\n */\nexports.hasFetchPriority = 'has fetch priority';\n\n/**\n * the chunk name of the chunk with the runtime\n */\nexports.chunkName = '__webpack_require__.cn';\n\n/**\n * the runtime id of the current runtime\n */\nexports.runtimeId = '__webpack_require__.j';\n\n/**\n * the filename of the script part of the chunk\n */\nexports.getChunkScriptFilename = '__webpack_require__.u';\n\n/**\n * the filename of the css part of the chunk\n */\nexports.getChunkCssFilename = '__webpack_require__.k';\n\n/**\n * a flag when a module/chunk/tree has css modules\n */\nexports.hasCssModules = 'has css modules';\n\n/**\n * the filename of the script part of the hot update chunk\n */\nexports.getChunkUpdateScriptFilename = '__webpack_require__.hu';\n\n/**\n * the filename of the css part of the hot update chunk\n */\nexports.getChunkUpdateCssFilename = '__webpack_require__.hk';\n\n/**\n * startup signal from runtime\n * This will be called when the runtime chunk has been loaded.\n */\nexports.startup = '__webpack_require__.x';\n\n/**\n * @deprecated\n * creating a default startup function with the entry modules\n */\nexports.startupNoDefault = '__webpack_require__.x (no default handler)';\n\n/**\n * startup signal from runtime but only used to add logic after the startup\n */\nexports.startupOnlyAfter = '__webpack_require__.x (only after)';\n\n/**\n * startup signal from runtime but only used to add sync logic before the startup\n */\nexports.startupOnlyBefore = '__webpack_require__.x (only before)';\n\n/**\n * global callback functions for installing chunks\n */\nexports.chunkCallback = 'webpackChunk';\n\n/**\n * method to startup an entrypoint with needed chunks.\n * Signature: (moduleId: Id, chunkIds: Id[]) => any.\n * Returns the exports of the module or a Promise\n */\nexports.startupEntrypoint = '__webpack_require__.X';\n\n/**\n * register deferred code, which will run when certain\n * chunks are loaded.\n * Signature: (chunkIds: Id[], fn: () => any, priority: int >= 0 = 0) => any\n * Returned value will be returned directly when all chunks are already loaded\n * When (priority & 1) it will wait for all other handlers with lower priority to\n * be executed before itself is executed\n */\nexports.onChunksLoaded = '__webpack_require__.O';\n\n/**\n * method to install a chunk that was loaded somehow\n * Signature: ({ id, ids, modules, runtime }) => void\n */\nexports.externalInstallChunk = '__webpack_require__.C';\n\n/**\n * interceptor for module executions\n */\nexports.interceptModuleExecution = '__webpack_require__.i';\n\n/**\n * the global object\n */\nexports.global = '__webpack_require__.g';\n\n/**\n * an object with all share scopes\n */\nexports.shareScopeMap = '__webpack_require__.S';\n\n/**\n * The sharing init sequence function (only runs once per share scope).\n * Has one argument, the name of the share scope.\n * Creates a share scope if not existing\n */\nexports.initializeSharing = '__webpack_require__.I';\n\n/**\n * The current scope when getting a module from a remote\n */\nexports.currentRemoteGetScope = '__webpack_require__.R';\n\n/**\n * the filename of the HMR manifest\n */\nexports.getUpdateManifestFilename = '__webpack_require__.hmrF';\n\n/**\n * function downloading the update manifest\n */\nexports.hmrDownloadManifest = '__webpack_require__.hmrM';\n\n/**\n * array with handler functions to download chunk updates\n */\nexports.hmrDownloadUpdateHandlers = '__webpack_require__.hmrC';\n\n/**\n * object with all hmr module data for all modules\n */\nexports.hmrModuleData = '__webpack_require__.hmrD';\n\n/**\n * array with handler functions when a module should be invalidated\n */\nexports.hmrInvalidateModuleHandlers = '__webpack_require__.hmrI';\n\n/**\n * the prefix for storing state of runtime modules when hmr is enabled\n */\nexports.hmrRuntimeStatePrefix = '__webpack_require__.hmrS';\n\n/**\n * the AMD define function\n */\nexports.amdDefine = '__webpack_require__.amdD';\n\n/**\n * the AMD options\n */\nexports.amdOptions = '__webpack_require__.amdO';\n\n/**\n * the System polyfill object\n */\nexports.system = '__webpack_require__.System';\n\n/**\n * the shorthand for Object.prototype.hasOwnProperty\n * using of it decreases the compiled bundle size\n */\nexports.hasOwnProperty = '__webpack_require__.o';\n\n/**\n * the System.register context object\n */\nexports.systemContext = '__webpack_require__.y';\n\n/**\n * the baseURI of current document\n */\nexports.baseURI = '__webpack_require__.b';\n\n/**\n * a RelativeURL class when relative URLs are used\n */\nexports.relativeUrl = '__webpack_require__.U';\n\n/**\n * Creates an async module. The body function must be a async function.\n * \"module.exports\" will be decorated with an AsyncModulePromise.\n * The body function will be called.\n * To handle async dependencies correctly do this: \"([a, b, c] = await handleDependencies([a, b, c]));\".\n * If \"hasAwaitAfterDependencies\" is truthy, \"handleDependencies()\" must be called at the end of the body function.\n * Signature: function(\n * module: Module,\n * body: (handleDependencies: (deps: AsyncModulePromise[]) => Promise<any[]> & () => void,\n * hasAwaitAfterDependencies?: boolean\n * ) => void\n */\nexports.asyncModule = '__webpack_require__.a';\n"],"names":["exports","require","requireScope","thisAsExports","returnExportsFromRuntime","module","moduleId","moduleLoaded","publicPath","entryModuleId","moduleCache","moduleFactories","moduleFactoriesAddOnly","ensureChunk","ensureChunkHandlers","ensureChunkIncludeEntries","prefetchChunk","prefetchChunkHandlers","preloadChunk","preloadChunkHandlers","definePropertyGetters","makeNamespaceObject","createFakeNamespaceObject","compatGetDefaultExport","harmonyModuleDecorator","nodeModuleDecorator","getFullHash","wasmInstances","instantiateWasm","uncaughtErrorHandler","scriptNonce","loadScript","createScript","createScriptUrl","getTrustedTypesPolicy","hasFetchPriority","chunkName","runtimeId","getChunkScriptFilename","getChunkCssFilename","hasCssModules","getChunkUpdateScriptFilename","getChunkUpdateCssFilename","startup","startupNoDefault","startupOnlyAfter","startupOnlyBefore","chunkCallback","startupEntrypoint","onChunksLoaded","externalInstallChunk","interceptModuleExecution","global","shareScopeMap","initializeSharing","currentRemoteGetScope","getUpdateManifestFilename","hmrDownloadManifest","hmrDownloadUpdateHandlers","hmrModuleData","hmrInvalidateModuleHandlers","hmrRuntimeStatePrefix","amdDefine","amdOptions","system","hasOwnProperty","systemContext","baseURI","relativeUrl","asyncModule"],"mappings":"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"}
@@ -1,45 +0,0 @@
1
- import type Compilation from 'webpack/lib/Compilation';
2
- import type Compiler from 'webpack/lib/Compiler';
3
- import type Module from 'webpack/lib/Module';
4
- import { SyncBailHook } from 'tapable';
5
- /**
6
- * AsyncBoundaryPlugin is a Webpack plugin that handles asynchronous boundaries in a federated module.
7
- * @class
8
- */
9
- declare class AsyncBoundaryPlugin {
10
- /**
11
- * Define hooks
12
- * @property {SyncBailHook} checkInvalidContext - A hook that checks if the render context is invalid.
13
- */
14
- hooks: {
15
- checkInvalidContext: SyncBailHook<[Module, Compilation], boolean, import("tapable").UnsetAdditionalOptions>;
16
- };
17
- /**
18
- * Apply the plugin to the Webpack compiler instance.
19
- * @param {Compiler} compiler - Webpack compiler instance.
20
- */
21
- apply(compiler: Compiler): void;
22
- /**
23
- * Render the startup logic for the plugin.
24
- * @param {Source} source - The source code.
25
- * @param {RenderContext} renderContext - The render context.
26
- * @param {any} startupRenderContext - The startup render context.
27
- * @param {Compilation} compilation - The Webpack compilation instance.
28
- * @returns {string} - The modified source code.
29
- */
30
- private renderStartupLogic;
31
- /**
32
- * Replace the webpack exec string.
33
- * @param {string} webpack_exec - The webpack exec string.
34
- * @returns {string} - The replaced webpack exec string.
35
- */
36
- private replaceWebpackExec;
37
- /**
38
- * Get the IDs of the dependent chunks.
39
- * @param {any} startupRenderContext - The startup render context.
40
- * @param {any} chunkGraph - The chunk graph.
41
- * @returns {Set} - The set of dependent chunk IDs.
42
- */
43
- private getDependentChunkIds;
44
- }
45
- export default AsyncBoundaryPlugin;
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
9
- }
10
- });
11
- const _webpack = require("webpack");
12
- const _ChunkHelpers = require("webpack/lib/javascript/ChunkHelpers");
13
- const _tapable = require("tapable");
14
- /**
15
- * AsyncBoundaryPlugin is a Webpack plugin that handles asynchronous boundaries in a federated module.
16
- * @class
17
- */ let AsyncBoundaryPlugin = class AsyncBoundaryPlugin {
18
- /**
19
- * Apply the plugin to the Webpack compiler instance.
20
- * @param {Compiler} compiler - Webpack compiler instance.
21
- */ apply(compiler) {
22
- const { javascript } = compiler.webpack;
23
- compiler.hooks.thisCompilation.tap('AsyncBoundaryPlugin', (compilation)=>{
24
- const hooks = javascript.JavascriptModulesPlugin.getCompilationHooks(compilation);
25
- hooks.renderStartup.tap('AsyncBoundaryPlugin', (source, renderContext, startupRenderContext)=>{
26
- return this.renderStartupLogic(source, renderContext, startupRenderContext, compilation);
27
- });
28
- });
29
- }
30
- /**
31
- * Render the startup logic for the plugin.
32
- * @param {Source} source - The source code.
33
- * @param {RenderContext} renderContext - The render context.
34
- * @param {any} startupRenderContext - The startup render context.
35
- * @param {Compilation} compilation - The Webpack compilation instance.
36
- * @returns {string} - The modified source code.
37
- */ renderStartupLogic(source, renderContext, startupRenderContext, compilation) {
38
- var _this_hooks_checkInvalidContext_call;
39
- const isInvalidContext = (_this_hooks_checkInvalidContext_call = this.hooks.checkInvalidContext.call(renderContext, compilation)) != null ? _this_hooks_checkInvalidContext_call : false;
40
- if (isInvalidContext) return source.source().toString();
41
- const { chunkGraph } = compilation;
42
- const replaceSource = source.source().toString();
43
- const replaceSourceLines = replaceSource.split('\n');
44
- const webpack_exec_index = replaceSourceLines.findIndex((line)=>line.includes('webpack_exec'));
45
- const webpack_exec = replaceSourceLines[webpack_exec_index];
46
- const webpack_exports = replaceSourceLines.slice(webpack_exec_index + 1);
47
- const dependentChunkIds = this.getDependentChunkIds(startupRenderContext, chunkGraph);
48
- return _webpack.Template.asString([
49
- this.replaceWebpackExec(webpack_exec),
50
- `globalThis.ongoingRemotes = globalThis.ongoingRemotes || [];`,
51
- `var __webpack_exec__ = async function() {`,
52
- _webpack.Template.indent([
53
- `var chunkIds = ${JSON.stringify(Array.from(dependentChunkIds))};`,
54
- `if (${_webpack.RuntimeGlobals.ensureChunkHandlers}.consumes) {`,
55
- ` chunkIds.forEach(function(id) { ${_webpack.RuntimeGlobals.ensureChunkHandlers}.consumes(id, globalThis.ongoingRemotes); });`,
56
- ` await Promise.all(globalThis.ongoingRemotes);`,
57
- `}`,
58
- `if (${_webpack.RuntimeGlobals.ensureChunkHandlers}.remotes) {`,
59
- ` chunkIds.forEach(function(id) { ${_webpack.RuntimeGlobals.ensureChunkHandlers}.remotes(id, globalThis.ongoingRemotes); });`,
60
- ` await Promise.all(globalThis.ongoingRemotes);`,
61
- `}`,
62
- `return __original_webpack_exec__.apply(this, arguments);`
63
- ]),
64
- `};`,
65
- ...webpack_exports
66
- ]);
67
- }
68
- /**
69
- * Replace the webpack exec string.
70
- * @param {string} webpack_exec - The webpack exec string.
71
- * @returns {string} - The replaced webpack exec string.
72
- */ replaceWebpackExec(webpack_exec) {
73
- return webpack_exec.replace('__webpack_exec__', '__original_webpack_exec__');
74
- }
75
- /**
76
- * Get the IDs of the dependent chunks.
77
- * @param {any} startupRenderContext - The startup render context.
78
- * @param {any} chunkGraph - The chunk graph.
79
- * @returns {Set} - The set of dependent chunk IDs.
80
- */ getDependentChunkIds(startupRenderContext, chunkGraph) {
81
- const entries = Array.from(chunkGraph.getChunkEntryModulesWithChunkGroupIterable(startupRenderContext.chunk));
82
- const chunkIds = new Set();
83
- for (const [module, entrypoint] of entries){
84
- if (entrypoint) {
85
- const runtimeChunk = entrypoint.getRuntimeChunk();
86
- if (runtimeChunk) {
87
- const chunks = (0, _ChunkHelpers.getAllChunks)(entrypoint, runtimeChunk);
88
- for (const c of chunks){
89
- chunkIds.add(c.id);
90
- }
91
- }
92
- }
93
- }
94
- return chunkIds;
95
- }
96
- constructor(){
97
- /**
98
- * Define hooks
99
- * @property {SyncBailHook} checkInvalidContext - A hook that checks if the render context is invalid.
100
- */ this.hooks = {
101
- checkInvalidContext: new _tapable.SyncBailHook([
102
- 'renderContext',
103
- 'compilation'
104
- ])
105
- };
106
- }
107
- };
108
- const _default = AsyncBoundaryPlugin;
109
-
110
- //# sourceMappingURL=AsyncBoundaryPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/AsyncBoundaryPlugin.ts"],"sourcesContent":["import { Template, RuntimeGlobals } from 'webpack';\nimport { Source } from 'webpack-sources';\nimport type Compilation from 'webpack/lib/Compilation';\nimport type Compiler from 'webpack/lib/Compiler';\nimport type Module from 'webpack/lib/Module';\nimport type Chunk from 'webpack/lib/Chunk';\nimport { getAllChunks } from 'webpack/lib/javascript/ChunkHelpers';\nimport { ChunkGraph } from 'webpack/lib/ChunkGroup';\nimport { StartupRenderContext } from 'webpack/lib/javascript/JavascriptModulesPlugin';\nimport { RenderContext } from 'webpack/lib/javascript/JavascriptModulesPlugin';\nimport { SyncBailHook } from 'tapable';\n/**\n * AsyncBoundaryPlugin is a Webpack plugin that handles asynchronous boundaries in a federated module.\n * @class\n */\nclass AsyncBoundaryPlugin {\n /**\n * Define hooks\n * @property {SyncBailHook} checkInvalidContext - A hook that checks if the render context is invalid.\n */\n public hooks = {\n checkInvalidContext: new SyncBailHook<[Module, Compilation], boolean>([\n 'renderContext',\n 'compilation',\n ]),\n };\n\n /**\n * Apply the plugin to the Webpack compiler instance.\n * @param {Compiler} compiler - Webpack compiler instance.\n */\n public apply(compiler: Compiler): void {\n const { javascript } = compiler.webpack;\n compiler.hooks.thisCompilation.tap(\n 'AsyncBoundaryPlugin',\n (compilation: Compilation) => {\n const hooks =\n javascript.JavascriptModulesPlugin.getCompilationHooks(compilation);\n \n hooks.renderStartup.tap(\n 'AsyncBoundaryPlugin',\n (\n source: Source,\n renderContext: Module,\n startupRenderContext: StartupRenderContext,\n ) => {\n return this.renderStartupLogic(\n source,\n renderContext,\n startupRenderContext,\n compilation,\n );\n },\n );\n },\n );\n }\n\n /**\n * Render the startup logic for the plugin.\n * @param {Source} source - The source code.\n * @param {RenderContext} renderContext - The render context.\n * @param {any} startupRenderContext - The startup render context.\n * @param {Compilation} compilation - The Webpack compilation instance.\n * @returns {string} - The modified source code.\n */\n private renderStartupLogic(\n source: Source,\n renderContext: Module,\n startupRenderContext: StartupRenderContext,\n compilation: Compilation,\n ): string {\n const isInvalidContext =\n this.hooks.checkInvalidContext.call(renderContext, compilation) ?? false;\n if (isInvalidContext) return source.source().toString();\n\n const { chunkGraph } = compilation;\n const replaceSource = source.source().toString();\n const replaceSourceLines = replaceSource.split('\\n');\n const webpack_exec_index = replaceSourceLines.findIndex(line => line.includes('webpack_exec'));\n const webpack_exec = replaceSourceLines[webpack_exec_index];\n const webpack_exports = replaceSourceLines.slice(webpack_exec_index + 1);\n const dependentChunkIds = this.getDependentChunkIds(\n startupRenderContext,\n chunkGraph,\n );\n\n return Template.asString([\n this.replaceWebpackExec(webpack_exec),\n `globalThis.ongoingRemotes = globalThis.ongoingRemotes || [];`,\n `var __webpack_exec__ = async function() {`,\n Template.indent([\n `var chunkIds = ${JSON.stringify(Array.from(dependentChunkIds))};`,\n `if (${RuntimeGlobals.ensureChunkHandlers}.consumes) {`,\n ` chunkIds.forEach(function(id) { ${RuntimeGlobals.ensureChunkHandlers}.consumes(id, globalThis.ongoingRemotes); });`,\n ` await Promise.all(globalThis.ongoingRemotes);`,\n `}`,\n `if (${RuntimeGlobals.ensureChunkHandlers}.remotes) {`,\n ` chunkIds.forEach(function(id) { ${RuntimeGlobals.ensureChunkHandlers}.remotes(id, globalThis.ongoingRemotes); });`,\n ` await Promise.all(globalThis.ongoingRemotes);`,\n `}`,\n `return __original_webpack_exec__.apply(this, arguments);`,\n ]),\n `};`,\n ...webpack_exports,\n ]);\n }\n\n /**\n * Replace the webpack exec string.\n * @param {string} webpack_exec - The webpack exec string.\n * @returns {string} - The replaced webpack exec string.\n */\n private replaceWebpackExec(webpack_exec: string): string {\n return webpack_exec.replace(\n '__webpack_exec__',\n '__original_webpack_exec__',\n );\n }\n\n /**\n * Get the IDs of the dependent chunks.\n * @param {any} startupRenderContext - The startup render context.\n * @param {any} chunkGraph - The chunk graph.\n * @returns {Set} - The set of dependent chunk IDs.\n */\n private getDependentChunkIds(\n startupRenderContext: RenderContext,\n chunkGraph: ChunkGraph,\n ): Set<string | number | null> {\n const entries = Array.from(\n chunkGraph.getChunkEntryModulesWithChunkGroupIterable(\n startupRenderContext.chunk,\n ),\n );\n const chunkIds = new Set<string | number | null>();\n for (const [module, entrypoint] of entries) {\n if (entrypoint) {\n const runtimeChunk = entrypoint.getRuntimeChunk();\n if (runtimeChunk) {\n const chunks = getAllChunks(entrypoint, runtimeChunk);\n for (const c of chunks) {\n chunkIds.add(c.id);\n }\n }\n }\n }\n return chunkIds;\n }\n}\n\nexport default AsyncBoundaryPlugin;\n"],"names":["AsyncBoundaryPlugin","apply","compiler","javascript","webpack","hooks","thisCompilation","tap","compilation","JavascriptModulesPlugin","getCompilationHooks","renderStartup","source","renderContext","startupRenderContext","renderStartupLogic","isInvalidContext","checkInvalidContext","call","toString","chunkGraph","replaceSource","replaceSourceLines","split","webpack_exec_index","findIndex","line","includes","webpack_exec","webpack_exports","slice","dependentChunkIds","getDependentChunkIds","Template","asString","replaceWebpackExec","indent","JSON","stringify","Array","from","RuntimeGlobals","ensureChunkHandlers","replace","entries","getChunkEntryModulesWithChunkGroupIterable","chunk","chunkIds","Set","module","entrypoint","runtimeChunk","getRuntimeChunk","chunks","getAllChunks","c","add","id","SyncBailHook"],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- module.exports = ContainerEntryDependency;
3
-
4
- //# sourceMappingURL=ContainerEntryDependency.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryDependency.d.ts"],"sourcesContent":["export = ContainerEntryDependency;\n/** @typedef {import(\"./ContainerEntryModule\").ExposeOptions} ExposeOptions */\ndeclare class ContainerEntryDependency extends Dependency {\n /**\n * @param {string} name entry name\n * @param {[string, ExposeOptions][]} exposes list of exposed modules\n * @param {string} shareScope name of the share scope\n */\n constructor(\n name: string,\n exposes: [string, ExposeOptions][],\n shareScope: string,\n );\n name: string;\n exposes: [string, import('./ContainerEntryModule').ExposeOptions][];\n shareScope: string;\n}\ndeclare namespace ContainerEntryDependency {\n export { ExposeOptions };\n}\ntype ExposeOptions = import('./ContainerEntryModule').ExposeOptions;\n"],"names":["ContainerEntryDependency"],"mappings":";iBAASA"}
@@ -1,20 +0,0 @@
1
- import { ExposeOptions } from './ContainerEntryModule';
2
- import Dependency from 'webpack/lib/Dependency';
3
- declare class ContainerEntryDependency extends Dependency {
4
- name: string;
5
- exposes: [string, ExposeOptions][];
6
- shareScope: string;
7
- /**
8
- * @param {string} name entry name
9
- * @param {[string, ExposeOptions][]} exposes list of exposed modules
10
- * @param {string} shareScope name of the share scope
11
- */
12
- constructor(name: string, exposes: [string, ExposeOptions][], shareScope: string);
13
- /**
14
- * @returns {string | null} an identifier to merge equal requests
15
- */
16
- getResourceIdentifier(): string | null;
17
- get type(): string;
18
- get category(): string;
19
- }
20
- export default ContainerEntryDependency;
@@ -1,47 +0,0 @@
1
- /*
2
- MIT License http://www.opensource.org/licenses/mit-license.php
3
- Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
4
- */ "use strict";
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- Object.defineProperty(exports, "default", {
9
- enumerable: true,
10
- get: function() {
11
- return _default;
12
- }
13
- });
14
- const _makeSerializable = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/makeSerializable"));
15
- const _Dependency = /*#__PURE__*/ _interop_require_default(require("webpack/lib/Dependency"));
16
- function _interop_require_default(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- let ContainerEntryDependency = class ContainerEntryDependency extends _Dependency.default {
22
- /**
23
- * @returns {string | null} an identifier to merge equal requests
24
- */ getResourceIdentifier() {
25
- return `container-entry-${this.name}`;
26
- }
27
- get type() {
28
- return 'container entry';
29
- }
30
- get category() {
31
- return 'esm';
32
- }
33
- /**
34
- * @param {string} name entry name
35
- * @param {[string, ExposeOptions][]} exposes list of exposed modules
36
- * @param {string} shareScope name of the share scope
37
- */ constructor(name, exposes, shareScope){
38
- super();
39
- this.name = name;
40
- this.exposes = exposes;
41
- this.shareScope = shareScope;
42
- }
43
- };
44
- (0, _makeSerializable.default)(ContainerEntryDependency, 'enhanced/lib/container/ContainerEntryDependency');
45
- const _default = ContainerEntryDependency;
46
-
47
- //# sourceMappingURL=ContainerEntryDependency.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryDependency.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr\n*/\n\nimport { ExposeOptions } from './ContainerEntryModule';\nimport makeSerializable from 'webpack/lib/util/makeSerializable';\nimport Dependency from 'webpack/lib/Dependency';\n\nclass ContainerEntryDependency extends Dependency {\n public name: string;\n public exposes: [string, ExposeOptions][];\n public shareScope: string;\n\n /**\n * @param {string} name entry name\n * @param {[string, ExposeOptions][]} exposes list of exposed modules\n * @param {string} shareScope name of the share scope\n */\n constructor(\n name: string,\n exposes: [string, ExposeOptions][],\n shareScope: string,\n ) {\n super();\n this.name = name;\n this.exposes = exposes;\n this.shareScope = shareScope;\n }\n\n /**\n * @returns {string | null} an identifier to merge equal requests\n */\n override getResourceIdentifier(): string | null {\n return `container-entry-${this.name}`;\n }\n\n override get type(): string {\n return 'container entry';\n }\n\n override get category(): string {\n return 'esm';\n }\n}\n\nmakeSerializable(\n ContainerEntryDependency,\n 'enhanced/lib/container/ContainerEntryDependency',\n);\n\nexport default ContainerEntryDependency;\n"],"names":["ContainerEntryDependency","Dependency","getResourceIdentifier","name","type","category","constructor","exposes","shareScope","makeSerializable"],"mappings":"AAAA;;;AAGA;;;;+BAgDA;;;eAAA;;;yEA7C6B;mEACN;;;;;;AAEvB,IAAA,AAAMA,2BAAN,MAAMA,iCAAiCC,mBAAU;IAqB/C;;GAEC,GACD,AAASC,wBAAuC;QAC9C,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAACC,IAAI,CAAC,CAAC;IACvC;IAEA,IAAaC,OAAe;QAC1B,OAAO;IACT;IAEA,IAAaC,WAAmB;QAC9B,OAAO;IACT;IA7BA;;;;GAIC,GACDC,YACEH,IAAY,EACZI,OAAkC,EAClCC,UAAkB,CAClB;QACA,KAAK;QACL,IAAI,CAACL,IAAI,GAAGA;QACZ,IAAI,CAACI,OAAO,GAAGA;QACf,IAAI,CAACC,UAAU,GAAGA;IACpB;AAgBF;AAEAC,IAAAA,yBAAgB,EACdT,0BACA;MAGF,WAAeA"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
9
- }
10
- });
11
- const Module = require("webpack/lib/Module");
12
- const _default = ContainerEntryModule;
13
-
14
- //# sourceMappingURL=ContainerEntryModule.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryModule.d.ts"],"sourcesContent":["import Module = require('webpack/lib/Module');\nexport type ExposeOptions = {\n /**\n * requests to exposed modules (last one is exported)\n */\n import: string[];\n /**\n * custom chunk name for the exposed module\n */\n name: string;\n};\ntype ObjectDeserializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;\ntype WebpackOptions = any;\ntype ChunkGraph = import('webpack/lib/ChunkGraph');\ntype ChunkGroup = import('webpack/lib/ChunkGroup');\ntype Compilation = import('webpack/lib/Compilation');\ntype CodeGenerationContext = import('webpack/lib/Module').CodeGenerationContext;\ntype CodeGenerationResult = import('webpack/lib/Module').CodeGenerationResult;\ntype LibIdentOptions = import('webpack/lib/Module').LibIdentOptions;\ntype NeedBuildContext = import('webpack/lib/Module').NeedBuildContext;\ntype RequestShortener = import('webpack/lib/RequestShortener');\ntype ResolverWithOptions =\n import('webpack/lib/ResolverFactory').ResolverWithOptions;\ntype WebpackError = import('webpack/lib/WebpackError');\ntype ObjectSerializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;\ntype Hash = import('webpack/lib/util/Hash');\ntype InputFileSystem = import('webpack/lib/util/fs').InputFileSystem;\ntype ContainerEntryDependency = typeof import('./ContainerEntryDependency');\n\ndeclare class ContainerEntryModule extends Module {\n /**\n * @param {ObjectDeserializerContext} context context\n * @returns {ContainerEntryModule} deserialized container entry module\n */\n static deserialize(context: ObjectDeserializerContext): ContainerEntryModule;\n /**\n * @param {string} name container entry name\n * @param {[string, ExposeOptions][]} exposes list of exposed modules\n * @param {string} shareScope name of the share scope\n */\n constructor(\n name: string,\n exposes: [string, ExposeOptions][],\n shareScope: string,\n );\n _name: string;\n _exposes: [string, ExposeOptions][];\n _shareScope: string;\n}\ndeclare namespace ContainerEntryModule {\n export {\n WebpackOptions,\n ChunkGraph,\n ChunkGroup,\n Compilation,\n CodeGenerationContext,\n CodeGenerationResult,\n LibIdentOptions,\n NeedBuildContext,\n RequestShortener,\n ResolverWithOptions,\n WebpackError,\n ObjectDeserializerContext,\n ObjectSerializerContext,\n Hash,\n InputFileSystem,\n ContainerEntryDependency,\n ExposeOptions,\n };\n}\nexport default ContainerEntryModule;\n"],"names":["Module","ContainerEntryModule"],"mappings":";;;;+BAwEA;;;eAAA;;;AAxEA,MAAOA,iBAAiB;MAwExB,WAAeC"}
@@ -1,85 +0,0 @@
1
- import Module from 'webpack/lib/Module';
2
- import type Compilation from 'webpack/lib/Compilation';
3
- import type { LibIdentOptions, NeedBuildContext, RequestShortener, ObjectDeserializerContext, ObjectSerializerContext, WebpackOptions, InputFileSystem, ResolverWithOptions } from 'webpack/lib/Module';
4
- import type WebpackError from 'webpack/lib/WebpackError';
5
- export type ExposeOptions = {
6
- /**
7
- * requests to exposed modules (last one is exported)
8
- */
9
- import: string[];
10
- /**
11
- * custom chunk name for the exposed module
12
- */
13
- name: string;
14
- };
15
- declare class ContainerEntryModule extends Module {
16
- private _name;
17
- private _exposes;
18
- private _shareScope;
19
- /**
20
- * @param {string} name container entry name
21
- * @param {[string, ExposeOptions][]} exposes list of exposed modules
22
- * @param {string} shareScope name of the share scope
23
- */
24
- constructor(name: string, exposes: [string, ExposeOptions][], shareScope: string);
25
- /**
26
- * @param {ObjectDeserializerContext} context context
27
- * @returns {ContainerEntryModule} deserialized container entry module
28
- */
29
- static deserialize(context: ObjectDeserializerContext): ContainerEntryModule;
30
- /**
31
- * @returns {Set<string>} types available (do not mutate)
32
- */
33
- getSourceTypes(): Set<string>;
34
- /**
35
- * @returns {string} a unique identifier of the module
36
- */
37
- identifier(): string;
38
- /**
39
- * @param {RequestShortener} requestShortener the request shortener
40
- * @returns {string} a user readable identifier of the module
41
- */
42
- readableIdentifier(requestShortener: RequestShortener): string;
43
- /**
44
- * @param {LibIdentOptions} options options
45
- * @returns {string | null} an identifier for library inclusion
46
- */
47
- libIdent(options: LibIdentOptions): string | null;
48
- /**
49
- * @param {NeedBuildContext} context context info
50
- * @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
51
- * @returns {void}
52
- */
53
- needBuild(context: NeedBuildContext, callback: (arg0: (WebpackError | null) | undefined, arg1: boolean | undefined) => void): void;
54
- /**
55
- * @param {WebpackOptions} options webpack options
56
- * @param {Compilation} compilation the compilation
57
- * @param {ResolverWithOptions} resolver the resolver
58
- * @param {InputFileSystem} fs the file system
59
- * @param {function(WebpackError): void} callback callback function
60
- * @returns {void}
61
- */
62
- build(options: WebpackOptions, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (err?: WebpackError) => void): void;
63
- /**
64
- * @param {CodeGenerationContext} context context for code generation
65
- * @returns {CodeGenerationResult} result
66
- */
67
- codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }: {
68
- moduleGraph: any;
69
- chunkGraph: any;
70
- runtimeTemplate: any;
71
- }): {
72
- sources: Map<any, any>;
73
- runtimeRequirements: Set<"__webpack_require__.o" | "__webpack_require__.d" | "__webpack_exports__">;
74
- };
75
- /**
76
- * @param {string=} type the source type for which the size should be estimated
77
- * @returns {number} the estimated size of the module (must be non-zero)
78
- */
79
- size(type?: string): number;
80
- /**
81
- * @param {ObjectSerializerContext} context context
82
- */
83
- serialize(context: ObjectSerializerContext): void;
84
- }
85
- export default ContainerEntryModule;