@bleedingdev/modern-js-app-tools 3.5.0-ultramodern.9 → 3.5.0-ultramodern.91

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 (258) hide show
  1. package/bin/modern.js +0 -0
  2. package/dist/cjs/builder/generator/getBuilderEnvironments.js +13 -16
  3. package/dist/cjs/builder/shared/builderPlugins/adapterPrecompress.js +13 -4
  4. package/dist/cjs/builder/shared/builderPlugins/adapterSSR.js +14 -11
  5. package/dist/cjs/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.js +72 -0
  6. package/dist/cjs/builder/shared/bundlerPlugins/RouterPlugin.js +28 -11
  7. package/dist/cjs/builder/shared/bundlerPlugins/index.js +13 -6
  8. package/dist/cjs/builder/shared/lazyCompilation.js +2 -10
  9. package/dist/cjs/commands/index.js +0 -4
  10. package/dist/cjs/config/build-environment.js +268 -0
  11. package/dist/cjs/config/index.js +11 -4
  12. package/dist/cjs/config/public.js +46 -0
  13. package/dist/cjs/index.js +39 -62
  14. package/dist/cjs/plugins/analyze/getServerRoutes.js +19 -0
  15. package/dist/cjs/plugins/analyze/index.js +20 -12
  16. package/dist/cjs/plugins/backend-federation/codegen.js +255 -0
  17. package/dist/cjs/plugins/backend-federation/config.js +204 -0
  18. package/dist/cjs/plugins/backend-federation/emit.js +148 -0
  19. package/dist/cjs/plugins/backendFederationBuild.js +53 -0
  20. package/dist/cjs/plugins/deploy/index.js +4 -4
  21. package/dist/cjs/plugins/deploy/platforms/cloudflare/artifacts.js +127 -0
  22. package/dist/cjs/plugins/deploy/platforms/cloudflare/constants.js +141 -0
  23. package/dist/cjs/plugins/deploy/platforms/cloudflare/delivery-unit.js +139 -0
  24. package/dist/cjs/plugins/deploy/platforms/cloudflare/i18n-worker.js +135 -0
  25. package/dist/cjs/plugins/deploy/platforms/cloudflare/index.js +150 -0
  26. package/dist/cjs/plugins/deploy/platforms/cloudflare/security-policies.js +205 -0
  27. package/dist/cjs/plugins/deploy/platforms/cloudflare/types.js +18 -0
  28. package/dist/cjs/plugins/deploy/platforms/cloudflare/utils.js +66 -0
  29. package/dist/cjs/plugins/deploy/platforms/cloudflare/worker-manifest.js +208 -0
  30. package/dist/cjs/plugins/deploy/platforms/cloudflare/wrangler-config.js +204 -0
  31. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-contract.js +108 -0
  32. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-plan.js +93 -0
  33. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/identity.js +83 -0
  34. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js +188 -0
  35. package/dist/cjs/{baseline.js → plugins/deploy/platforms/cloudflare-output-verifier/issues.js} +19 -10
  36. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/manifest.js +89 -0
  37. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.js +151 -0
  38. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.js +302 -0
  39. package/dist/cjs/plugins/deploy/platforms/node.js +20 -2
  40. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +250 -0
  41. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +191 -0
  42. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +514 -0
  43. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +1012 -0
  44. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +363 -0
  45. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +93 -0
  46. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +8 -4
  47. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +251 -155
  48. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +78 -39
  49. package/dist/cjs/plugins/deploy/platforms/templates/netlify-entry.cjs +62 -41
  50. package/dist/cjs/plugins/deploy/platforms/templates/netlify-entry.mjs +63 -41
  51. package/dist/cjs/plugins/deploy/platforms/templates/node-entry.cjs +52 -35
  52. package/dist/cjs/plugins/deploy/platforms/templates/node-entry.mjs +53 -35
  53. package/dist/cjs/plugins/deploy/platforms/templates/vercel-entry.cjs +61 -41
  54. package/dist/cjs/plugins/deploy/platforms/templates/vercel-entry.mjs +61 -40
  55. package/dist/cjs/plugins/deploy/utils/npmAliases.js +226 -0
  56. package/dist/cjs/plugins/ultramodernReleaseEnvelope.js +100 -0
  57. package/dist/cjs/presetUltramodern.js +33 -2
  58. package/dist/cjs/ultramodern-release-envelope/canonical.js +68 -0
  59. package/dist/cjs/ultramodern-release-envelope/framework-output.js +597 -0
  60. package/dist/cjs/ultramodern-release-envelope/index.js +399 -0
  61. package/dist/cjs/ultramodern-release-envelope/types.js +51 -0
  62. package/dist/cjs/ultramodern-release-identity.js +110 -0
  63. package/dist/esm/builder/generator/getBuilderEnvironments.mjs +12 -15
  64. package/dist/esm/builder/shared/builderPlugins/adapterPrecompress.mjs +13 -4
  65. package/dist/esm/builder/shared/builderPlugins/adapterSSR.mjs +15 -12
  66. package/dist/esm/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.mjs +30 -0
  67. package/dist/esm/builder/shared/bundlerPlugins/RouterPlugin.mjs +24 -10
  68. package/dist/esm/builder/shared/bundlerPlugins/index.mjs +1 -0
  69. package/dist/esm/builder/shared/lazyCompilation.mjs +1 -3
  70. package/dist/esm/commands/index.mjs +0 -1
  71. package/dist/esm/config/build-environment.mjs +224 -0
  72. package/dist/esm/config/index.mjs +1 -0
  73. package/dist/esm/config/public.mjs +1 -0
  74. package/dist/esm/index.mjs +5 -4
  75. package/dist/esm/plugins/analyze/getHtmlTemplate.mjs +2 -2
  76. package/dist/esm/plugins/analyze/getServerRoutes.mjs +17 -1
  77. package/dist/esm/plugins/analyze/index.mjs +20 -12
  78. package/dist/esm/plugins/analyze/isDefaultExportFunction.mjs +2 -2
  79. package/dist/esm/plugins/backend-federation/codegen.mjs +204 -0
  80. package/dist/esm/plugins/backend-federation/config.mjs +128 -0
  81. package/dist/esm/plugins/backend-federation/emit.mjs +97 -0
  82. package/dist/esm/plugins/backendFederationBuild.mjs +1 -0
  83. package/dist/esm/plugins/deploy/index.mjs +1 -1
  84. package/dist/esm/plugins/deploy/platforms/cloudflare/artifacts.mjs +64 -0
  85. package/dist/esm/plugins/deploy/platforms/cloudflare/constants.mjs +34 -0
  86. package/dist/esm/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +88 -0
  87. package/dist/esm/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +97 -0
  88. package/dist/esm/plugins/deploy/platforms/cloudflare/index.mjs +102 -0
  89. package/dist/esm/plugins/deploy/platforms/cloudflare/security-policies.mjs +167 -0
  90. package/dist/esm/plugins/deploy/platforms/cloudflare/types.mjs +0 -0
  91. package/dist/esm/plugins/deploy/platforms/cloudflare/utils.mjs +12 -0
  92. package/dist/esm/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +148 -0
  93. package/dist/esm/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +150 -0
  94. package/dist/esm/plugins/deploy/platforms/cloudflare-output-contract.mjs +31 -0
  95. package/dist/esm/plugins/deploy/platforms/cloudflare-output-plan.mjs +45 -0
  96. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +45 -0
  97. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +133 -0
  98. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +10 -0
  99. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +51 -0
  100. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +99 -0
  101. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +238 -0
  102. package/dist/esm/plugins/deploy/platforms/node.mjs +20 -2
  103. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +250 -0
  104. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +191 -0
  105. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +514 -0
  106. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +1012 -0
  107. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +363 -0
  108. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +93 -0
  109. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +8 -4
  110. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +251 -155
  111. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +78 -39
  112. package/dist/esm/plugins/deploy/platforms/templates/netlify-entry.cjs +62 -41
  113. package/dist/esm/plugins/deploy/platforms/templates/netlify-entry.mjs +63 -41
  114. package/dist/esm/plugins/deploy/platforms/templates/node-entry.cjs +52 -35
  115. package/dist/esm/plugins/deploy/platforms/templates/node-entry.mjs +53 -35
  116. package/dist/esm/plugins/deploy/platforms/templates/vercel-entry.cjs +61 -41
  117. package/dist/esm/plugins/deploy/platforms/templates/vercel-entry.mjs +61 -40
  118. package/dist/esm/plugins/deploy/utils/npmAliases.mjs +174 -0
  119. package/dist/esm/plugins/ultramodernReleaseEnvelope.mjs +52 -0
  120. package/dist/esm/presetUltramodern.mjs +33 -2
  121. package/dist/esm/ultramodern-release-envelope/canonical.mjs +21 -0
  122. package/dist/esm/ultramodern-release-envelope/framework-output.mjs +524 -0
  123. package/dist/esm/ultramodern-release-envelope/index.mjs +335 -0
  124. package/dist/esm/ultramodern-release-envelope/types.mjs +7 -0
  125. package/dist/esm/ultramodern-release-identity.mjs +66 -0
  126. package/dist/esm-node/builder/generator/getBuilderEnvironments.mjs +12 -15
  127. package/dist/esm-node/builder/shared/builderPlugins/adapterPrecompress.mjs +13 -4
  128. package/dist/esm-node/builder/shared/builderPlugins/adapterSSR.mjs +15 -12
  129. package/dist/esm-node/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.mjs +31 -0
  130. package/dist/esm-node/builder/shared/bundlerPlugins/RouterPlugin.mjs +24 -10
  131. package/dist/esm-node/builder/shared/bundlerPlugins/index.mjs +1 -0
  132. package/dist/esm-node/builder/shared/lazyCompilation.mjs +1 -3
  133. package/dist/esm-node/commands/index.mjs +0 -1
  134. package/dist/esm-node/config/build-environment.mjs +225 -0
  135. package/dist/esm-node/config/index.mjs +1 -0
  136. package/dist/esm-node/config/public.mjs +2 -0
  137. package/dist/esm-node/index.mjs +5 -4
  138. package/dist/esm-node/plugins/analyze/getHtmlTemplate.mjs +2 -2
  139. package/dist/esm-node/plugins/analyze/getServerRoutes.mjs +17 -1
  140. package/dist/esm-node/plugins/analyze/index.mjs +20 -12
  141. package/dist/esm-node/plugins/analyze/isDefaultExportFunction.mjs +2 -2
  142. package/dist/esm-node/plugins/backend-federation/codegen.mjs +205 -0
  143. package/dist/esm-node/plugins/backend-federation/config.mjs +129 -0
  144. package/dist/esm-node/plugins/backend-federation/emit.mjs +98 -0
  145. package/dist/esm-node/plugins/backendFederationBuild.mjs +2 -0
  146. package/dist/esm-node/plugins/deploy/index.mjs +1 -1
  147. package/dist/esm-node/plugins/deploy/platforms/cloudflare/artifacts.mjs +65 -0
  148. package/dist/esm-node/plugins/deploy/platforms/cloudflare/constants.mjs +35 -0
  149. package/dist/esm-node/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +89 -0
  150. package/dist/esm-node/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +98 -0
  151. package/dist/esm-node/plugins/deploy/platforms/cloudflare/index.mjs +103 -0
  152. package/dist/esm-node/plugins/deploy/platforms/cloudflare/security-policies.mjs +168 -0
  153. package/dist/esm-node/plugins/deploy/platforms/cloudflare/types.mjs +1 -0
  154. package/dist/esm-node/plugins/deploy/platforms/cloudflare/utils.mjs +13 -0
  155. package/dist/esm-node/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +149 -0
  156. package/dist/esm-node/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +151 -0
  157. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-contract.mjs +32 -0
  158. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-plan.mjs +46 -0
  159. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +46 -0
  160. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +134 -0
  161. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +11 -0
  162. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +52 -0
  163. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +100 -0
  164. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +239 -0
  165. package/dist/esm-node/plugins/deploy/platforms/node.mjs +20 -2
  166. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +250 -0
  167. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +191 -0
  168. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +514 -0
  169. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +1012 -0
  170. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +363 -0
  171. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +93 -0
  172. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +8 -4
  173. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +251 -155
  174. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +78 -39
  175. package/dist/esm-node/plugins/deploy/platforms/templates/netlify-entry.cjs +62 -41
  176. package/dist/esm-node/plugins/deploy/platforms/templates/netlify-entry.mjs +63 -41
  177. package/dist/esm-node/plugins/deploy/platforms/templates/node-entry.cjs +52 -35
  178. package/dist/esm-node/plugins/deploy/platforms/templates/node-entry.mjs +53 -35
  179. package/dist/esm-node/plugins/deploy/platforms/templates/vercel-entry.cjs +61 -41
  180. package/dist/esm-node/plugins/deploy/platforms/templates/vercel-entry.mjs +61 -40
  181. package/dist/esm-node/plugins/deploy/utils/npmAliases.mjs +175 -0
  182. package/dist/esm-node/plugins/ultramodernReleaseEnvelope.mjs +53 -0
  183. package/dist/esm-node/presetUltramodern.mjs +33 -2
  184. package/dist/esm-node/ultramodern-release-envelope/canonical.mjs +22 -0
  185. package/dist/esm-node/ultramodern-release-envelope/framework-output.mjs +525 -0
  186. package/dist/esm-node/ultramodern-release-envelope/index.mjs +336 -0
  187. package/dist/esm-node/ultramodern-release-envelope/types.mjs +8 -0
  188. package/dist/esm-node/ultramodern-release-identity.mjs +67 -0
  189. package/dist/types/builder/generator/createCopyPattern.d.ts +7 -5
  190. package/dist/types/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.d.ts +6 -0
  191. package/dist/types/builder/shared/bundlerPlugins/RouterPlugin.d.ts +1 -0
  192. package/dist/types/builder/shared/bundlerPlugins/index.d.ts +1 -0
  193. package/dist/types/builder/shared/lazyCompilation.d.ts +2 -4
  194. package/dist/types/commands/index.d.ts +0 -1
  195. package/dist/types/config/build-environment.d.ts +22 -0
  196. package/dist/types/config/index.d.ts +1 -0
  197. package/dist/types/config/public.d.ts +2 -0
  198. package/dist/types/index.d.ts +0 -2
  199. package/dist/types/plugins/analyze/getServerRoutes.d.ts +1 -0
  200. package/dist/types/plugins/backend-federation/codegen.d.ts +83 -0
  201. package/dist/types/plugins/backend-federation/config.d.ts +103 -0
  202. package/dist/types/plugins/backend-federation/emit.d.ts +13 -0
  203. package/dist/types/plugins/backendFederationBuild.d.ts +2 -0
  204. package/dist/types/plugins/deploy/platforms/cloudflare/artifacts.d.ts +15 -0
  205. package/dist/types/plugins/deploy/platforms/cloudflare/constants.d.ts +24 -0
  206. package/dist/types/plugins/deploy/platforms/cloudflare/delivery-unit.d.ts +23 -0
  207. package/dist/types/plugins/deploy/platforms/cloudflare/i18n-worker.d.ts +22 -0
  208. package/dist/types/plugins/deploy/platforms/{cloudflare.d.ts → cloudflare/index.d.ts} +1 -1
  209. package/dist/types/plugins/deploy/platforms/cloudflare/security-policies.d.ts +51 -0
  210. package/dist/types/plugins/deploy/platforms/cloudflare/types.d.ts +5 -0
  211. package/dist/types/plugins/deploy/platforms/cloudflare/utils.d.ts +6 -0
  212. package/dist/types/plugins/deploy/platforms/cloudflare/worker-manifest.d.ts +122 -0
  213. package/dist/types/plugins/deploy/platforms/cloudflare/wrangler-config.d.ts +46 -0
  214. package/dist/types/plugins/deploy/platforms/cloudflare-output-contract.d.ts +14 -0
  215. package/dist/types/plugins/deploy/platforms/cloudflare-output-plan.d.ts +34 -0
  216. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/identity.d.ts +4 -0
  217. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts +18 -0
  218. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/issues.d.ts +14 -0
  219. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/manifest.d.ts +2 -0
  220. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.d.ts +14 -0
  221. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.d.ts +20 -0
  222. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.d.mts +1 -0
  223. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.d.mts +1 -0
  224. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.d.mts +1 -0
  225. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.d.mts +1 -0
  226. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.d.mts +1 -0
  227. package/dist/types/plugins/deploy/utils/npmAliases.d.ts +14 -0
  228. package/dist/types/plugins/ultramodernReleaseEnvelope.d.ts +3 -0
  229. package/dist/types/presetUltramodern.d.ts +10 -0
  230. package/dist/types/run/index.d.ts +1 -1
  231. package/dist/types/types/config/cloudflareDeploy.d.ts +41 -0
  232. package/dist/types/types/config/deploy.d.ts +15 -2
  233. package/dist/types/ultramodern-release-envelope/canonical.d.ts +5 -0
  234. package/dist/types/ultramodern-release-envelope/framework-output.d.ts +31 -0
  235. package/dist/types/ultramodern-release-envelope/index.d.ts +6 -0
  236. package/dist/types/ultramodern-release-envelope/types.d.ts +62 -0
  237. package/dist/types/ultramodern-release-identity.d.ts +16 -0
  238. package/lib/types.d.ts +2 -3
  239. package/package.json +38 -23
  240. package/rslib.config.mts +11 -12
  241. package/dist/cjs/commands/runtime.js +0 -196
  242. package/dist/cjs/plugins/deploy/platforms/cloudflare.js +0 -540
  243. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -576
  244. package/dist/cjs/ultramodern/designSystem.js +0 -123
  245. package/dist/esm/baseline.mjs +0 -4
  246. package/dist/esm/commands/runtime.mjs +0 -146
  247. package/dist/esm/plugins/deploy/platforms/cloudflare.mjs +0 -492
  248. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -576
  249. package/dist/esm/ultramodern/designSystem.mjs +0 -73
  250. package/dist/esm-node/baseline.mjs +0 -5
  251. package/dist/esm-node/commands/runtime.mjs +0 -147
  252. package/dist/esm-node/plugins/deploy/platforms/cloudflare.mjs +0 -493
  253. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -576
  254. package/dist/esm-node/ultramodern/designSystem.mjs +0 -74
  255. package/dist/types/baseline.d.ts +0 -16
  256. package/dist/types/commands/runtime.d.ts +0 -12
  257. package/dist/types/ultramodern/designSystem.d.ts +0 -54
  258. /package/dist/types/plugins/deploy/platforms/templates/{cloudflare-entry.d.mts → cloudflare-entry.006-fetch-handler.d.mts} +0 -0
package/bin/modern.js CHANGED
File without changes
@@ -45,6 +45,7 @@ const external_node_path_namespaceObject = require("node:path");
45
45
  var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
46
46
  const builder_namespaceObject = require("@modern-js/builder");
47
47
  const utils_namespaceObject = require("@modern-js/utils");
48
+ const cloudflare_output_contract_js_namespaceObject = require("../../plugins/deploy/platforms/cloudflare-output-contract.js");
48
49
  const BFF_EFFECT_WORKER_ENTRY_NAME = '__modern_bff_effect';
49
50
  const BFF_EFFECT_WORKER_RUNTIME_QUERY = 'modern-bff-runtime';
50
51
  const JS_OR_TS_EXTS = [
@@ -57,20 +58,6 @@ const JS_OR_TS_EXTS = [
57
58
  '.cjs',
58
59
  '.cts'
59
60
  ];
60
- const CLOUDFLARE_WORKER_NODE_BUILTINS = [
61
- 'async_hooks',
62
- 'buffer',
63
- 'crypto',
64
- 'events',
65
- 'fs/promises',
66
- 'module',
67
- 'path',
68
- 'process',
69
- 'stream',
70
- 'string_decoder',
71
- 'url',
72
- 'util'
73
- ];
74
61
  const CLOUDFLARE_WORKER_COMPAT_TEMPLATE_DIR = external_node_path_default().resolve(__dirname, '../../plugins/deploy/platforms/templates');
75
62
  function findExistingFile(candidates) {
76
63
  return candidates.find((candidate)=>external_node_fs_default().existsSync(candidate));
@@ -120,7 +107,7 @@ function getCloudflareWorkerCompatFile(file) {
120
107
  return external_node_path_default().join(CLOUDFLARE_WORKER_COMPAT_TEMPLATE_DIR, file);
121
108
  }
122
109
  function getCloudflareWorkerNodeExternals() {
123
- return Object.fromEntries(CLOUDFLARE_WORKER_NODE_BUILTINS.flatMap((builtin)=>{
110
+ return Object.fromEntries(cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WORKER_NODE_BUILTINS.flatMap((builtin)=>{
124
111
  const nodeBuiltin = `node:${builtin}`;
125
112
  return [
126
113
  [
@@ -301,7 +288,17 @@ function getBuilderEnvironments(normalizedConfig, appContext, tempBuilderConfig)
301
288
  });
302
289
  chain.output.module(true).library({
303
290
  type: 'module'
304
- }).chunkFormat('module').chunkLoading('import').workerChunkLoading('import');
291
+ }).publicPath('/').chunkFormat('module').chunkLoading('import').workerChunkLoading('import');
292
+ chain.optimization.usedExports(false).providedExports(true).innerGraph(false).sideEffects(false);
293
+ for (const condition of [
294
+ 'workerd',
295
+ 'worker',
296
+ 'webpack',
297
+ (0, utils_namespaceObject.isProd)() ? 'production' : 'development',
298
+ 'import',
299
+ 'require',
300
+ 'module'
301
+ ])chain.resolve.conditionNames.add(condition);
305
302
  chain.plugins.delete('plugin-module-federation');
306
303
  if (tanstackRouterSsrServerFile) {
307
304
  chain.resolve.alias.set('@tanstack/router-core/ssr/server$', tanstackRouterSsrServerFile);
@@ -72,10 +72,19 @@ const mergeCompressionOptions = (base, next)=>{
72
72
  ...base,
73
73
  ...next
74
74
  };
75
- if (base.compressionOptions || next.compressionOptions) merged.compressionOptions = {
76
- ...base.compressionOptions,
77
- ...next.compressionOptions
78
- };
75
+ if (base.compressionOptions || next.compressionOptions) {
76
+ const baseCompressionOptions = base.compressionOptions;
77
+ const nextCompressionOptions = next.compressionOptions;
78
+ const mergedCompressionOptions = {
79
+ ...baseCompressionOptions,
80
+ ...nextCompressionOptions
81
+ };
82
+ if (baseCompressionOptions?.params || nextCompressionOptions?.params) mergedCompressionOptions.params = {
83
+ ...baseCompressionOptions?.params,
84
+ ...nextCompressionOptions?.params
85
+ };
86
+ merged.compressionOptions = mergedCompressionOptions;
87
+ }
79
88
  return merged;
80
89
  };
81
90
  const resolveCodecOptions = (codecConfig, createDefaultOptions)=>{
@@ -95,17 +95,20 @@ function applyRouterPlugin(chain, pluginName, options, HtmlBundlerPlugin) {
95
95
  const workerSSR = Boolean(normalizedConfig.deploy.worker?.ssr);
96
96
  const { enableInlineRouteManifests, disableInlineRouteManifests } = normalizedConfig.output;
97
97
  const inlineRouteManifests = disableInlineRouteManifests ? !disableInlineRouteManifests : enableInlineRouteManifests;
98
- if (existNestedRoutes || workerSSR) chain.plugin(pluginName).use(index_js_namespaceObject.RouterPlugin, [
99
- {
100
- HtmlBundlerPlugin,
101
- enableInlineRouteManifests: inlineRouteManifests,
102
- staticJsDir: normalizedConfig.output?.distPath?.js,
103
- disableFilenameHash: normalizedConfig.output?.filenameHash === false,
104
- scriptLoading: normalizedConfig.html?.scriptLoading,
105
- nonce: normalizedConfig.security?.nonce,
106
- useRsc: (0, utils_namespaceObject.isUseRsc)(normalizedConfig)
107
- }
108
- ]);
98
+ if (existNestedRoutes || workerSSR) {
99
+ chain.plugin(`${pluginName}-css-extract-runtime`).use(index_js_namespaceObject.CssExtractRuntimePlugin);
100
+ chain.plugin(pluginName).use(index_js_namespaceObject.RouterPlugin, [
101
+ {
102
+ HtmlBundlerPlugin,
103
+ enableInlineRouteManifests: inlineRouteManifests,
104
+ staticJsDir: normalizedConfig.output?.distPath?.js,
105
+ disableFilenameHash: normalizedConfig.output?.filenameHash === false,
106
+ scriptLoading: normalizedConfig.html?.scriptLoading,
107
+ nonce: normalizedConfig.security?.nonce,
108
+ useRsc: (0, utils_namespaceObject.isUseRsc)(normalizedConfig)
109
+ }
110
+ ]);
111
+ }
109
112
  }
110
113
  function applyFilterEntriesBySSRConfig({ isProd, chain, appNormalizedConfig }) {
111
114
  const { server: serverConfig, output: outputConfig } = appNormalizedConfig;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, getters, values)=>{
5
+ var define = (defs, kind)=>{
6
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ [kind]: defs[key]
9
+ });
10
+ };
11
+ define(getters, "get");
12
+ define(values, "value");
13
+ };
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
17
+ })();
18
+ (()=>{
19
+ __webpack_require__.r = (exports1)=>{
20
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
21
+ value: 'Module'
22
+ });
23
+ Object.defineProperty(exports1, '__esModule', {
24
+ value: true
25
+ });
26
+ };
27
+ })();
28
+ var __webpack_exports__ = {};
29
+ __webpack_require__.r(__webpack_exports__);
30
+ const PLUGIN_NAME = 'ModernjsCssExtractRuntimePlugin';
31
+ const CSS_LOADING_RUNTIME_MODULE = 'webpack/runtime/css loading';
32
+ const CSS_EXTRACT_STYLESHEET_MATCH = '\t\tif (tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;';
33
+ const CSS_EXTRACT_STYLESHEET_MATCH_WITH_NORMALIZED_URL = `\t\tvar absoluteHref = tag.href;
34
+ \t\tvar absoluteFullHref = new URL(fullhref, document.baseURI).href;
35
+ \t\tif (tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref || absoluteHref === absoluteFullHref)) return tag;`;
36
+ const isAutomaticPublicPath = (publicPath)=>'auto' === publicPath || 'auto/' === publicPath;
37
+ const normalizeCssExtractRuntimeStylesheetLookup = (source)=>{
38
+ if (!source.includes('__webpack_require__.miniCssF')) return source;
39
+ const occurrences = source.split(CSS_EXTRACT_STYLESHEET_MATCH).length - 1;
40
+ if (1 !== occurrences) throw new Error(`Unsupported CssExtractRspackPlugin runtime shape: expected one stylesheet lookup, found ${occurrences}.`);
41
+ return source.replace(CSS_EXTRACT_STYLESHEET_MATCH, CSS_EXTRACT_STYLESHEET_MATCH_WITH_NORMALIZED_URL);
42
+ };
43
+ class CssExtractRuntimePlugin {
44
+ apply(compiler) {
45
+ if (!isAutomaticPublicPath(compiler.options.output.publicPath)) return;
46
+ compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation)=>{
47
+ compilation.hooks.runtimeModule.tap(PLUGIN_NAME, (runtimeModule)=>{
48
+ if (runtimeModule.identifier() !== CSS_LOADING_RUNTIME_MODULE) return;
49
+ const runtimeSource = runtimeModule.source?.source;
50
+ if ('string' != typeof runtimeSource) return;
51
+ runtimeModule.source.source = normalizeCssExtractRuntimeStylesheetLookup(runtimeSource);
52
+ });
53
+ });
54
+ }
55
+ constructor(){
56
+ this.name = PLUGIN_NAME;
57
+ }
58
+ }
59
+ __webpack_require__.d(__webpack_exports__, {
60
+ CssExtractRuntimePlugin: ()=>CssExtractRuntimePlugin
61
+ }, {
62
+ normalizeCssExtractRuntimeStylesheetLookup: normalizeCssExtractRuntimeStylesheetLookup
63
+ });
64
+ exports.CssExtractRuntimePlugin = __webpack_exports__.CssExtractRuntimePlugin;
65
+ exports.normalizeCssExtractRuntimeStylesheetLookup = __webpack_exports__.normalizeCssExtractRuntimeStylesheetLookup;
66
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
67
+ "CssExtractRuntimePlugin",
68
+ "normalizeCssExtractRuntimeStylesheetLookup"
69
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
70
+ Object.defineProperty(exports, '__esModule', {
71
+ value: true
72
+ });
@@ -28,7 +28,8 @@ var __webpack_require__ = {};
28
28
  var __webpack_exports__ = {};
29
29
  __webpack_require__.r(__webpack_exports__);
30
30
  __webpack_require__.d(__webpack_exports__, {
31
- RouterPlugin: ()=>RouterPlugin
31
+ RouterPlugin: ()=>RouterPlugin,
32
+ normalizeRouterAssetPublicPath: ()=>normalizeRouterAssetPublicPath
32
33
  });
33
34
  const utils_namespaceObject = require("@modern-js/utils");
34
35
  const lodash_namespaceObject = require("@modern-js/utils/lodash");
@@ -36,6 +37,13 @@ const constants_namespaceObject = require("@modern-js/utils/universal/constants"
36
37
  const external_crypto_namespaceObject = require("crypto");
37
38
  const PLUGIN_NAME = 'ModernjsRoutePlugin';
38
39
  const generateContentHash = (content)=>(0, external_crypto_namespaceObject.createHash)('md5').update(content).digest('hex').slice(0, 8);
40
+ const isAutomaticPublicPath = (publicPath)=>'auto' === publicPath || 'auto/' === publicPath;
41
+ const normalizeAutomaticHtmlAsset = (asset)=>asset.startsWith('auto/') ? `/${asset.slice(5)}` : asset;
42
+ const normalizeRouterAssetPublicPath = (publicPath)=>{
43
+ if (!publicPath) return '';
44
+ if (isAutomaticPublicPath(publicPath)) return '/';
45
+ return publicPath.endsWith('/') ? publicPath : `${publicPath}/`;
46
+ };
39
47
  class RouterPlugin {
40
48
  isTargetNodeOrWebWorker(target) {
41
49
  if ('node' === target || Array.isArray(target) && target.includes('node')) return true;
@@ -61,15 +69,21 @@ class RouterPlugin {
61
69
  const { rspack } = compiler;
62
70
  const { Compilation, sources } = rspack;
63
71
  const { RawSource } = sources;
64
- const normalizePath = (path)=>{
65
- if (!path.endsWith('/')) return `${path}/`;
66
- return path;
67
- };
68
72
  const chunksToHtmlName = new Map();
69
73
  const ROUTE_MANIFEST_HOLDER = "route-manifest";
70
74
  const placeholder = `<!--<?- ${ROUTE_MANIFEST_HOLDER} ?>-->`;
71
75
  compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation)=>{
72
- this.HtmlBundlerPlugin.getCompilationHooks(compilation).beforeEmit.tapAsync('RouterManifestPlugin', (data, callback)=>{
76
+ const htmlPluginHooks = this.HtmlBundlerPlugin.getCompilationHooks(compilation);
77
+ htmlPluginHooks.beforeAssetTagGeneration.tapAsync('RouterManifestPlugin', (data, callback)=>{
78
+ if (isAutomaticPublicPath(compiler.options.output.publicPath)) {
79
+ data.assets.publicPath = '/';
80
+ data.assets.js = data.assets.js.map(normalizeAutomaticHtmlAsset);
81
+ data.assets.css = data.assets.css.map(normalizeAutomaticHtmlAsset);
82
+ if (data.assets.favicon) data.assets.favicon = normalizeAutomaticHtmlAsset(data.assets.favicon);
83
+ }
84
+ callback(null, data);
85
+ });
86
+ htmlPluginHooks.beforeEmit.tapAsync('RouterManifestPlugin', (data, callback)=>{
73
87
  const { outputName } = data;
74
88
  const { chunks } = data.plugin.options;
75
89
  chunksToHtmlName.set(chunks, outputName);
@@ -89,6 +103,7 @@ class RouterPlugin {
89
103
  ids: true
90
104
  });
91
105
  const { publicPath, chunks = [], namedChunkGroups } = stats;
106
+ const assetPublicPath = normalizeRouterAssetPublicPath(publicPath);
92
107
  const routeAssets = {};
93
108
  if (!namedChunkGroups) return;
94
109
  const prevManifestAsset = compilation.getAsset(utils_namespaceObject.ROUTE_MANIFEST_FILE);
@@ -110,7 +125,7 @@ class RouterPlugin {
110
125
  const child = stack.pop();
111
126
  if (visited.has(child)) continue;
112
127
  visited.add(child);
113
- for (const chunk of child.chunks)for (const file of chunk.files)if (/\.css$/.test(file)) cssFiles.add(publicPath ? normalizePath(publicPath) + file : file);
128
+ for (const chunk of child.chunks)for (const file of chunk.files)if (/\.css$/.test(file)) cssFiles.add(assetPublicPath + file);
114
129
  for (const c of child.childrenIterable)stack.push(c);
115
130
  }
116
131
  return Array.from(cssFiles);
@@ -120,7 +135,7 @@ class RouterPlugin {
120
135
  if (name.startsWith('async-')) asyncEntryNames.push(name);
121
136
  const assets = chunkGroup.assets.map((asset)=>{
122
137
  const filename = asset.name;
123
- return publicPath ? normalizePath(publicPath) + filename : filename;
138
+ return assetPublicPath + filename;
124
139
  });
125
140
  const directCssAssets = assets.filter((asset)=>/\.css$/.test(asset));
126
141
  const descendantCssAssets = collectDescendantCssAssets(name).filter((asset)=>!directCssAssets.includes(asset));
@@ -175,7 +190,7 @@ class RouterPlugin {
175
190
  window.${constants_namespaceObject.ROUTE_MANIFEST} = ${JSON.stringify(manifest, (k, v)=>{
176
191
  if (('assets' === k || 'referenceCssAssets' === k) && Array.isArray(v)) {
177
192
  if (!useRsc) return;
178
- return v.map((item)=>item.replace(publicPath, ''));
193
+ return v.map((item)=>assetPublicPath ? item.replace(assetPublicPath, '') : item);
179
194
  }
180
195
  return v;
181
196
  })};
@@ -192,7 +207,7 @@ class RouterPlugin {
192
207
  if (oldHtml) if (enableInlineRouteManifests) compilation.updateAsset(htmlName, new RawSource(oldHtml.source().toString().replace(placeholder, `<script ${nonceAttr}>${injectedContent}</script>`)), void 0);
193
208
  else {
194
209
  const scriptPath = `${staticJsDir}/${ROUTE_MANIFEST_HOLDER}-${entryName}${disableFilenameHash ? '.js' : `.${generateContentHash(injectedContent)}.js`}`;
195
- const scriptUrl = `${publicPath}${scriptPath}`;
210
+ const scriptUrl = `${assetPublicPath}${scriptPath}`;
196
211
  const scriptLoadingAttr = 'defer' === scriptLoading ? scriptLoading : 'module' === scriptLoading ? 'type="module"' : '';
197
212
  const script = `<script ${scriptLoadingAttr} ${nonceAttr} src="${scriptUrl}"></script>`;
198
213
  compilation.updateAsset(htmlName, new RawSource(oldHtml.source().toString().replace(placeholder, script)), void 0);
@@ -216,8 +231,10 @@ class RouterPlugin {
216
231
  }
217
232
  }
218
233
  exports.RouterPlugin = __webpack_exports__.RouterPlugin;
234
+ exports.normalizeRouterAssetPublicPath = __webpack_exports__.normalizeRouterAssetPublicPath;
219
235
  for(var __rspack_i in __webpack_exports__)if (-1 === [
220
- "RouterPlugin"
236
+ "RouterPlugin",
237
+ "normalizeRouterAssetPublicPath"
221
238
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
222
239
  Object.defineProperty(exports, '__esModule', {
223
240
  value: true
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  var __webpack_modules__ = {
3
+ "./CssExtractRuntimePlugin" (module) {
4
+ module.exports = require("./CssExtractRuntimePlugin.js");
5
+ },
3
6
  "./HtmlAsyncChunkPlugin" (module) {
4
7
  module.exports = require("./HtmlAsyncChunkPlugin.js");
5
8
  },
@@ -57,17 +60,21 @@ function __webpack_require__(moduleId) {
57
60
  var __webpack_exports__ = {};
58
61
  (()=>{
59
62
  __webpack_require__.r(__webpack_exports__);
60
- var _HtmlAsyncChunkPlugin__rspack_import_0 = __webpack_require__("./HtmlAsyncChunkPlugin");
63
+ var _CssExtractRuntimePlugin__rspack_import_0 = __webpack_require__("./CssExtractRuntimePlugin");
64
+ var __rspack_reexport = {};
65
+ for(const __rspack_import_key in _CssExtractRuntimePlugin__rspack_import_0)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_CssExtractRuntimePlugin__rspack_import_0[__rspack_import_key];
66
+ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
67
+ var _HtmlAsyncChunkPlugin__rspack_import_1 = __webpack_require__("./HtmlAsyncChunkPlugin");
61
68
  var __rspack_reexport = {};
62
- for(const __rspack_import_key in _HtmlAsyncChunkPlugin__rspack_import_0)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_HtmlAsyncChunkPlugin__rspack_import_0[__rspack_import_key];
69
+ for(const __rspack_import_key in _HtmlAsyncChunkPlugin__rspack_import_1)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_HtmlAsyncChunkPlugin__rspack_import_1[__rspack_import_key];
63
70
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
64
- var _HtmlBottomTemplate__rspack_import_1 = __webpack_require__("./HtmlBottomTemplate");
71
+ var _HtmlBottomTemplate__rspack_import_2 = __webpack_require__("./HtmlBottomTemplate");
65
72
  var __rspack_reexport = {};
66
- for(const __rspack_import_key in _HtmlBottomTemplate__rspack_import_1)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_HtmlBottomTemplate__rspack_import_1[__rspack_import_key];
73
+ for(const __rspack_import_key in _HtmlBottomTemplate__rspack_import_2)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_HtmlBottomTemplate__rspack_import_2[__rspack_import_key];
67
74
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
68
- var _RouterPlugin__rspack_import_2 = __webpack_require__("./RouterPlugin");
75
+ var _RouterPlugin__rspack_import_3 = __webpack_require__("./RouterPlugin");
69
76
  var __rspack_reexport = {};
70
- for(const __rspack_import_key in _RouterPlugin__rspack_import_2)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_RouterPlugin__rspack_import_2[__rspack_import_key];
77
+ for(const __rspack_import_key in _RouterPlugin__rspack_import_3)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_RouterPlugin__rspack_import_3[__rspack_import_key];
71
78
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
72
79
  })();
73
80
  for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -30,11 +30,9 @@ __webpack_require__.r(__webpack_exports__);
30
30
  __webpack_require__.d(__webpack_exports__, {
31
31
  aggregateEagerRouteComponentFiles: ()=>aggregateEagerRouteComponentFiles,
32
32
  buildRouteEagerLazyCompilationTest: ()=>buildRouteEagerLazyCompilationTest,
33
- buildSSRLazyCompilationTest: ()=>buildSSRLazyCompilationTest,
34
33
  collectRouteComponentFiles: ()=>utils_namespaceObject.collectRouteComponentFiles,
35
34
  normalizeModulePath: ()=>utils_namespaceObject.normalizeModulePath,
36
- planRouteEagerLazyCompilation: ()=>planRouteEagerLazyCompilation,
37
- planSSRLazyCompilation: ()=>planSSRLazyCompilation
35
+ planRouteEagerLazyCompilation: ()=>planRouteEagerLazyCompilation
38
36
  });
39
37
  const utils_namespaceObject = require("@modern-js/utils");
40
38
  function aggregateEagerRouteComponentFiles(byEntry) {
@@ -58,7 +56,6 @@ function buildRouteEagerLazyCompilationTest(eagerRouteFiles, userTest) {
58
56
  return userTestFn(m);
59
57
  };
60
58
  }
61
- const buildSSRLazyCompilationTest = buildRouteEagerLazyCompilationTest;
62
59
  function planRouteEagerLazyCompilation(current, info) {
63
60
  if (!current) return {
64
61
  apply: false
@@ -80,22 +77,17 @@ function planRouteEagerLazyCompilation(current, info) {
80
77
  }
81
78
  };
82
79
  }
83
- const planSSRLazyCompilation = planRouteEagerLazyCompilation;
84
80
  exports.aggregateEagerRouteComponentFiles = __webpack_exports__.aggregateEagerRouteComponentFiles;
85
81
  exports.buildRouteEagerLazyCompilationTest = __webpack_exports__.buildRouteEagerLazyCompilationTest;
86
- exports.buildSSRLazyCompilationTest = __webpack_exports__.buildSSRLazyCompilationTest;
87
82
  exports.collectRouteComponentFiles = __webpack_exports__.collectRouteComponentFiles;
88
83
  exports.normalizeModulePath = __webpack_exports__.normalizeModulePath;
89
84
  exports.planRouteEagerLazyCompilation = __webpack_exports__.planRouteEagerLazyCompilation;
90
- exports.planSSRLazyCompilation = __webpack_exports__.planSSRLazyCompilation;
91
85
  for(var __rspack_i in __webpack_exports__)if (-1 === [
92
86
  "aggregateEagerRouteComponentFiles",
93
87
  "buildRouteEagerLazyCompilationTest",
94
- "buildSSRLazyCompilationTest",
95
88
  "collectRouteComponentFiles",
96
89
  "normalizeModulePath",
97
- "planRouteEagerLazyCompilation",
98
- "planSSRLazyCompilation"
90
+ "planRouteEagerLazyCompilation"
99
91
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
100
92
  Object.defineProperty(exports, '__esModule', {
101
93
  value: true
@@ -33,11 +33,9 @@ __webpack_require__.d(__webpack_exports__, {
33
33
  devCommand: ()=>devCommand,
34
34
  infoCommand: ()=>infoCommand,
35
35
  inspectCommand: ()=>inspectCommand,
36
- runtimeCommand: ()=>external_runtime_js_namespaceObject.runtimeCommand,
37
36
  serverCommand: ()=>serverCommand
38
37
  });
39
38
  const index_js_namespaceObject = require("../locale/index.js");
40
- const external_runtime_js_namespaceObject = require("./runtime.js");
41
39
  const devCommand = async (program, api)=>{
42
40
  program.command('dev').alias('start').usage('[options]').description(index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.dev.describe)).option('-c --config <config>', index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.shared.config)).option('-e --entry [entry...]', index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.dev.entry)).option('--analyze', index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.shared.analyze)).option('--api-only', index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.dev.apiOnly)).option('--web-only', index_js_namespaceObject.i18n.t(index_js_namespaceObject.localeKeys.command.dev.webOnly)).action(async (options)=>{
43
41
  const { dev } = await import("./dev.js");
@@ -84,7 +82,6 @@ exports.deployCommand = __webpack_exports__.deployCommand;
84
82
  exports.devCommand = __webpack_exports__.devCommand;
85
83
  exports.infoCommand = __webpack_exports__.infoCommand;
86
84
  exports.inspectCommand = __webpack_exports__.inspectCommand;
87
- exports.runtimeCommand = __webpack_exports__.runtimeCommand;
88
85
  exports.serverCommand = __webpack_exports__.serverCommand;
89
86
  for(var __rspack_i in __webpack_exports__)if (-1 === [
90
87
  "buildCommand",
@@ -92,7 +89,6 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
92
89
  "devCommand",
93
90
  "infoCommand",
94
91
  "inspectCommand",
95
- "runtimeCommand",
96
92
  "serverCommand"
97
93
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
98
94
  Object.defineProperty(exports, '__esModule', {