@bleedingdev/modern-js-app-tools 3.9.0-ultramodern.1 → 3.9.0-ultramodern.11

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 (352) hide show
  1. package/dist/cjs/builder/generator/index.js +0 -1
  2. package/dist/cjs/builder/shared/builderPlugins/index.js +4 -11
  3. package/dist/cjs/config/index.js +4 -11
  4. package/dist/cjs/index.js +46 -72
  5. package/dist/cjs/plugins/deploy/platforms/node.js +0 -13
  6. package/dist/cjs/plugins/deploy/utils/generator.js +1 -1
  7. package/dist/cjs/plugins/serverBuild.js +2 -1
  8. package/dist/cjs/{plugins/backendFederationBuild.js → server-plugin.js} +4 -7
  9. package/dist/esm/builder/generator/index.mjs +1 -2
  10. package/dist/esm/builder/shared/builderPlugins/index.mjs +0 -1
  11. package/dist/esm/config/index.mjs +0 -1
  12. package/dist/esm/index.mjs +3 -6
  13. package/dist/esm/plugins/deploy/platforms/node.mjs +0 -13
  14. package/dist/esm/plugins/deploy/utils/generator.mjs +1 -1
  15. package/dist/esm/plugins/serverBuild.mjs +2 -1
  16. package/dist/esm/server-plugin.mjs +1 -0
  17. package/dist/esm-node/builder/generator/index.mjs +1 -2
  18. package/dist/esm-node/builder/shared/builderPlugins/index.mjs +0 -1
  19. package/dist/esm-node/config/index.mjs +0 -1
  20. package/dist/esm-node/index.mjs +3 -6
  21. package/dist/esm-node/plugins/deploy/platforms/node.mjs +0 -13
  22. package/dist/esm-node/plugins/deploy/utils/generator.mjs +1 -1
  23. package/dist/esm-node/plugins/serverBuild.mjs +2 -1
  24. package/dist/esm-node/server-plugin.mjs +2 -0
  25. package/dist/types/builder/shared/builderPlugins/index.d.ts +0 -1
  26. package/dist/types/config/index.d.ts +0 -1
  27. package/dist/types/index.d.ts +2 -2
  28. package/dist/types/plugins/deploy/utils/generator.d.ts +1 -1
  29. package/dist/types/server-plugin.d.ts +10 -0
  30. package/dist/types/types/config/output.d.ts +0 -9
  31. package/dist/types/types/index.d.ts +1 -1
  32. package/dist/types/types/plugin.d.ts +56 -2
  33. package/dist/types/utils/initAppContext.d.ts +3 -2
  34. package/docs/apis/app/commands.md +2 -0
  35. package/docs/apis/app/hooks/api/lambda.md +2 -0
  36. package/docs/apis/app/hooks/config/favicon.md +2 -0
  37. package/docs/apis/app/hooks/config/html.md +2 -0
  38. package/docs/apis/app/hooks/config/icon.md +2 -0
  39. package/docs/apis/app/hooks/config/mock.md +2 -0
  40. package/docs/apis/app/hooks/config/public.md +2 -0
  41. package/docs/apis/app/hooks/config/upload.md +2 -0
  42. package/docs/apis/app/hooks/modern-config.md +2 -0
  43. package/docs/apis/app/hooks/server/server.md +2 -0
  44. package/docs/apis/app/hooks/shared.md +2 -0
  45. package/docs/apis/app/hooks/src/app.md +2 -0
  46. package/docs/apis/app/hooks/src/entry.md +2 -0
  47. package/docs/apis/app/hooks/src/entry.server.md +2 -0
  48. package/docs/apis/app/hooks/src/modern.runtime.md +2 -0
  49. package/docs/apis/app/hooks/src/routes.md +2 -0
  50. package/docs/apis/app/hooks/src/server.md +2 -0
  51. package/docs/apis/app/runtime/bff/use-backend-context.md +2 -0
  52. package/docs/apis/app/runtime/core/create-root.md +2 -0
  53. package/docs/apis/app/runtime/core/render.md +2 -0
  54. package/docs/apis/app/runtime/core/runtime-context.md +2 -0
  55. package/docs/apis/app/runtime/router/router.md +2 -0
  56. package/docs/apis/app/runtime/ssr/no-ssr.md +2 -0
  57. package/docs/apis/app/runtime/ssr/renderStreaming.md +2 -0
  58. package/docs/apis/app/runtime/ssr/renderString.md +2 -0
  59. package/docs/apis/app/runtime/ssr/requestHandler.md +2 -0
  60. package/docs/apis/app/runtime/utility/css-in-js.md +2 -0
  61. package/docs/apis/app/runtime/utility/head.md +2 -0
  62. package/docs/apis/app/runtime/utility/loadable.md +2 -0
  63. package/docs/community/blog/2022-0708-updates.md +2 -0
  64. package/docs/community/blog/2022-0910-updates.md +2 -0
  65. package/docs/community/blog/overview.md +2 -0
  66. package/docs/community/blog/v2-release-note.md +2 -0
  67. package/docs/community/blog/v3-release-note.md +2 -0
  68. package/docs/community/contributing-guide.md +2 -0
  69. package/docs/community/releases.md +2 -0
  70. package/docs/community/showcase.md +2 -0
  71. package/docs/community/team.md +2 -0
  72. package/docs/configure/app/bff/cross-project.md +2 -0
  73. package/docs/configure/app/bff/effect.md +31 -24
  74. package/docs/configure/app/bff/prefix.md +2 -0
  75. package/docs/configure/app/bff/runtime-framework.md +2 -0
  76. package/docs/configure/app/builder-plugins.md +2 -0
  77. package/docs/configure/app/dev/asset-prefix.md +2 -0
  78. package/docs/configure/app/dev/before-start-url.md +2 -0
  79. package/docs/configure/app/dev/client.md +2 -0
  80. package/docs/configure/app/dev/hmr.md +2 -0
  81. package/docs/configure/app/dev/host.md +2 -0
  82. package/docs/configure/app/dev/https.md +2 -0
  83. package/docs/configure/app/dev/lazy-compilation.md +2 -0
  84. package/docs/configure/app/dev/live-reload.md +2 -0
  85. package/docs/configure/app/dev/mock-dir.md +2 -0
  86. package/docs/configure/app/dev/progress-bar.md +2 -0
  87. package/docs/configure/app/dev/server.md +2 -0
  88. package/docs/configure/app/dev/setup-middlewares.md +2 -0
  89. package/docs/configure/app/dev/start-url.md +2 -0
  90. package/docs/configure/app/dev/watch-files.md +2 -0
  91. package/docs/configure/app/dev/write-to-disk.md +2 -0
  92. package/docs/configure/app/experiments/source-build.md +2 -0
  93. package/docs/configure/app/html/app-icon.md +2 -0
  94. package/docs/configure/app/html/crossorigin.md +2 -0
  95. package/docs/configure/app/html/favicon.md +2 -0
  96. package/docs/configure/app/html/inject.md +2 -0
  97. package/docs/configure/app/html/meta.md +2 -0
  98. package/docs/configure/app/html/mount-id.md +2 -0
  99. package/docs/configure/app/html/output-structure.md +2 -0
  100. package/docs/configure/app/html/script-loading.md +2 -0
  101. package/docs/configure/app/html/tags.md +2 -0
  102. package/docs/configure/app/html/template-parameters.md +2 -0
  103. package/docs/configure/app/html/template.md +2 -0
  104. package/docs/configure/app/html/title.md +2 -0
  105. package/docs/configure/app/output/asset-prefix.md +2 -0
  106. package/docs/configure/app/output/assets-retry.md +2 -0
  107. package/docs/configure/app/output/charset.md +2 -0
  108. package/docs/configure/app/output/clean-dist-path.md +2 -0
  109. package/docs/configure/app/output/convert-to-rem.md +2 -0
  110. package/docs/configure/app/output/copy.md +2 -0
  111. package/docs/configure/app/output/css-modules.md +2 -0
  112. package/docs/configure/app/output/data-uri-limit.md +2 -0
  113. package/docs/configure/app/output/disable-css-module-extension.md +2 -0
  114. package/docs/configure/app/output/disable-inline-runtime-chunk.md +2 -0
  115. package/docs/configure/app/output/disable-svgr.md +2 -0
  116. package/docs/configure/app/output/disable-ts-checker.md +2 -0
  117. package/docs/configure/app/output/dist-path.md +2 -0
  118. package/docs/configure/app/output/enable-asset-manifest.md +2 -0
  119. package/docs/configure/app/output/enable-css-module-tsdeclaration.md +2 -0
  120. package/docs/configure/app/output/enable-inline-route-manifests.md +2 -0
  121. package/docs/configure/app/output/externals.md +2 -0
  122. package/docs/configure/app/output/filename-hash.md +2 -0
  123. package/docs/configure/app/output/filename.md +2 -0
  124. package/docs/configure/app/output/inject-styles.md +2 -0
  125. package/docs/configure/app/output/inline-scripts.md +2 -0
  126. package/docs/configure/app/output/inline-styles.md +2 -0
  127. package/docs/configure/app/output/legal-comments.md +2 -0
  128. package/docs/configure/app/output/minify.md +2 -0
  129. package/docs/configure/app/output/override-browserslist.md +2 -0
  130. package/docs/configure/app/output/polyfill.md +2 -0
  131. package/docs/configure/app/output/source-map.md +2 -0
  132. package/docs/configure/app/output/split-route-chunks.md +2 -0
  133. package/docs/configure/app/output/ssg.md +2 -0
  134. package/docs/configure/app/output/ssgByEntries.md +2 -0
  135. package/docs/configure/app/output/svg-default-export.md +2 -0
  136. package/docs/configure/app/output/temp-dir.md +2 -0
  137. package/docs/configure/app/performance/build-cache.md +2 -0
  138. package/docs/configure/app/performance/chunk-split.md +2 -0
  139. package/docs/configure/app/performance/dns-prefetch.md +2 -0
  140. package/docs/configure/app/performance/preconnect.md +2 -0
  141. package/docs/configure/app/performance/prefetch.md +2 -0
  142. package/docs/configure/app/performance/preload.md +2 -0
  143. package/docs/configure/app/performance/print-file-size.md +2 -0
  144. package/docs/configure/app/performance/profile.md +2 -0
  145. package/docs/configure/app/performance/remove-console.md +2 -0
  146. package/docs/configure/app/performance/remove-moment-locale.md +2 -0
  147. package/docs/configure/app/performance/rsdoctor.md +2 -0
  148. package/docs/configure/app/plugins.md +2 -0
  149. package/docs/configure/app/resolve/alias-strategy.md +2 -0
  150. package/docs/configure/app/resolve/alias.md +2 -0
  151. package/docs/configure/app/resolve/condition-names.md +2 -0
  152. package/docs/configure/app/resolve/dedupe.md +2 -0
  153. package/docs/configure/app/resolve/extensions.md +2 -0
  154. package/docs/configure/app/runtime/0-intro.md +2 -0
  155. package/docs/configure/app/runtime/plugins.md +2 -0
  156. package/docs/configure/app/runtime/router.md +2 -0
  157. package/docs/configure/app/security/check-syntax.md +2 -0
  158. package/docs/configure/app/security/nonce.md +2 -0
  159. package/docs/configure/app/security/sri.md +2 -0
  160. package/docs/configure/app/server/base-url.md +2 -0
  161. package/docs/configure/app/server/port.md +2 -0
  162. package/docs/configure/app/server/public-routes.md +2 -0
  163. package/docs/configure/app/server/routes.md +2 -0
  164. package/docs/configure/app/server/rsc.md +2 -0
  165. package/docs/configure/app/server/ssr-by-entries.md +2 -0
  166. package/docs/configure/app/server/ssr.md +2 -0
  167. package/docs/configure/app/server/tsconfig-path.md +2 -0
  168. package/docs/configure/app/source/alias-strategy.md +2 -0
  169. package/docs/configure/app/source/alias.md +2 -0
  170. package/docs/configure/app/source/config-dir.md +2 -0
  171. package/docs/configure/app/source/decorators.md +2 -0
  172. package/docs/configure/app/source/define.md +2 -0
  173. package/docs/configure/app/source/disable-default-entries.md +2 -0
  174. package/docs/configure/app/source/enable-async-entry.md +2 -0
  175. package/docs/configure/app/source/enable-async-pre-entry.md +2 -0
  176. package/docs/configure/app/source/entries-dir.md +2 -0
  177. package/docs/configure/app/source/entries.md +2 -0
  178. package/docs/configure/app/source/exclude.md +2 -0
  179. package/docs/configure/app/source/global-vars.md +2 -0
  180. package/docs/configure/app/source/include.md +2 -0
  181. package/docs/configure/app/source/main-entry-name.md +2 -0
  182. package/docs/configure/app/source/pre-entry.md +2 -0
  183. package/docs/configure/app/source/react-compiler.md +2 -0
  184. package/docs/configure/app/source/transform-import.md +2 -0
  185. package/docs/configure/app/split-chunks.md +2 -0
  186. package/docs/configure/app/tools/autoprefixer.md +2 -0
  187. package/docs/configure/app/tools/bundler-chain.md +2 -0
  188. package/docs/configure/app/tools/css-extract.md +2 -0
  189. package/docs/configure/app/tools/css-loader.md +2 -0
  190. package/docs/configure/app/tools/dev-server.md +2 -0
  191. package/docs/configure/app/tools/html-plugin.md +2 -0
  192. package/docs/configure/app/tools/less.md +2 -0
  193. package/docs/configure/app/tools/lightningcss-loader.md +2 -0
  194. package/docs/configure/app/tools/minify-css.md +2 -0
  195. package/docs/configure/app/tools/postcss.md +2 -0
  196. package/docs/configure/app/tools/rspack.md +2 -0
  197. package/docs/configure/app/tools/sass.md +2 -0
  198. package/docs/configure/app/tools/style-loader.md +2 -0
  199. package/docs/configure/app/tools/swc.md +2 -0
  200. package/docs/configure/app/tools/ts-checker.md +2 -0
  201. package/docs/configure/app/usage.md +2 -0
  202. package/docs/guides/advanced-features/bff/cross-project.md +2 -0
  203. package/docs/guides/advanced-features/bff/data-platform.md +4 -2
  204. package/docs/guides/advanced-features/bff/extend-server.md +2 -0
  205. package/docs/guides/advanced-features/bff/frameworks.md +38 -24
  206. package/docs/guides/advanced-features/bff/function.md +4 -2
  207. package/docs/guides/advanced-features/bff/operators.md +19 -17
  208. package/docs/guides/advanced-features/bff/sdk.md +2 -0
  209. package/docs/guides/advanced-features/bff/upload.md +2 -0
  210. package/docs/guides/advanced-features/bff.md +2 -0
  211. package/docs/guides/advanced-features/build-performance.md +2 -0
  212. package/docs/guides/advanced-features/compatibility.md +2 -0
  213. package/docs/guides/advanced-features/international/advanced.md +2 -0
  214. package/docs/guides/advanced-features/international/api.md +2 -0
  215. package/docs/guides/advanced-features/international/best-practices.md +2 -0
  216. package/docs/guides/advanced-features/international/configuration.md +2 -0
  217. package/docs/guides/advanced-features/international/locale-detection.md +2 -0
  218. package/docs/guides/advanced-features/international/quick-start.md +2 -0
  219. package/docs/guides/advanced-features/international/resource-loading.md +2 -0
  220. package/docs/guides/advanced-features/international/routing.md +2 -0
  221. package/docs/guides/advanced-features/international.md +2 -0
  222. package/docs/guides/advanced-features/low-level.md +2 -0
  223. package/docs/guides/advanced-features/page-performance/code-split.md +2 -0
  224. package/docs/guides/advanced-features/page-performance/inline-assets.md +2 -0
  225. package/docs/guides/advanced-features/page-performance/optimize-bundle.md +2 -0
  226. package/docs/guides/advanced-features/page-performance/react-compiler.md +2 -0
  227. package/docs/guides/advanced-features/server-monitor/logger.md +2 -0
  228. package/docs/guides/advanced-features/server-monitor/metrics.md +2 -0
  229. package/docs/guides/advanced-features/server-monitor/monitors.md +2 -0
  230. package/docs/guides/advanced-features/source-build.md +2 -0
  231. package/docs/guides/advanced-features/web-server.md +2 -0
  232. package/docs/guides/basic-features/alias.md +2 -0
  233. package/docs/guides/basic-features/css/css-in-js.md +2 -0
  234. package/docs/guides/basic-features/css/css-modules.md +2 -0
  235. package/docs/guides/basic-features/css/css.md +2 -0
  236. package/docs/guides/basic-features/css/tailwindcss.md +2 -0
  237. package/docs/guides/basic-features/data/data-cache.md +2 -0
  238. package/docs/guides/basic-features/data/data-fetch.md +2 -0
  239. package/docs/guides/basic-features/data/data-write.md +2 -0
  240. package/docs/guides/basic-features/debug/mock.md +2 -0
  241. package/docs/guides/basic-features/debug/proxy.md +2 -0
  242. package/docs/guides/basic-features/debug/rsdoctor.md +2 -0
  243. package/docs/guides/basic-features/debug/using-storybook.md +2 -0
  244. package/docs/guides/basic-features/deploy.md +2 -0
  245. package/docs/guides/basic-features/env-vars.md +2 -0
  246. package/docs/guides/basic-features/html.md +2 -0
  247. package/docs/guides/basic-features/output-files.md +2 -0
  248. package/docs/guides/basic-features/render/before-render.md +2 -0
  249. package/docs/guides/basic-features/render/overview.md +2 -0
  250. package/docs/guides/basic-features/render/rsc.md +2 -0
  251. package/docs/guides/basic-features/render/ssg.md +2 -0
  252. package/docs/guides/basic-features/render/ssr-cache.md +16 -1
  253. package/docs/guides/basic-features/render/ssr.md +2 -0
  254. package/docs/guides/basic-features/render/streaming-ssr.md +2 -0
  255. package/docs/guides/basic-features/routes/config-routes.md +2 -0
  256. package/docs/guides/basic-features/routes/routes.md +2 -0
  257. package/docs/guides/basic-features/static-assets/json-files.md +2 -0
  258. package/docs/guides/basic-features/static-assets/svg-assets.md +2 -0
  259. package/docs/guides/basic-features/static-assets/wasm-assets.md +2 -0
  260. package/docs/guides/basic-features/static-assets.md +2 -0
  261. package/docs/guides/basic-features/testing/playwright.md +2 -0
  262. package/docs/guides/basic-features/testing/rstest.md +2 -0
  263. package/docs/guides/concept/builder.md +2 -0
  264. package/docs/guides/concept/entries.md +2 -0
  265. package/docs/guides/concept/server.md +2 -0
  266. package/docs/guides/get-started/ai-coding-agents.md +2 -0
  267. package/docs/guides/get-started/glossary.md +2 -0
  268. package/docs/guides/get-started/introduction.md +2 -0
  269. package/docs/guides/get-started/quick-start.md +3 -5
  270. package/docs/guides/get-started/tech-stack.md +2 -0
  271. package/docs/guides/get-started/ultramodern.md +11 -90
  272. package/docs/guides/get-started/upgrade.md +2 -0
  273. package/docs/guides/topic-detail/module-federation/application.md +2 -0
  274. package/docs/guides/topic-detail/module-federation/deploy.md +2 -0
  275. package/docs/guides/topic-detail/module-federation/i18n.md +2 -0
  276. package/docs/guides/topic-detail/module-federation/introduce.md +2 -0
  277. package/docs/guides/topic-detail/module-federation/ssr.md +2 -0
  278. package/docs/guides/topic-detail/module-federation/usage.md +2 -0
  279. package/docs/guides/troubleshooting/builder.md +2 -0
  280. package/docs/guides/troubleshooting/cli.md +2 -0
  281. package/docs/guides/troubleshooting/dependencies.md +2 -0
  282. package/docs/guides/troubleshooting/hmr.md +2 -0
  283. package/docs/guides/upgrade/config.md +2 -0
  284. package/docs/guides/upgrade/entry.md +2 -0
  285. package/docs/guides/upgrade/other.md +2 -0
  286. package/docs/guides/upgrade/overview.md +2 -0
  287. package/docs/guides/upgrade/tailwindcss.md +2 -0
  288. package/docs/guides/upgrade/web-server.md +2 -0
  289. package/docs/index.md +2 -0
  290. package/docs/llms.txt +2 -2
  291. package/docs/plugin/cli-plugins/api.md +2 -0
  292. package/docs/plugin/cli-plugins/life-cycle.md +2 -0
  293. package/docs/plugin/introduction.md +2 -0
  294. package/docs/plugin/official/cli-plugins/plugin-bff.md +2 -0
  295. package/docs/plugin/official/cli-plugins/plugin-ssg.md +2 -0
  296. package/docs/plugin/official/cli-plugins/plugin-styled-components.md +2 -0
  297. package/docs/plugin/official/cli-plugins.md +2 -0
  298. package/docs/plugin/plugin-system.md +2 -0
  299. package/docs/plugin/runtime-plugins/api.md +2 -0
  300. package/docs/plugin/runtime-plugins/life-cycle.md +2 -0
  301. package/docs/plugin/server-plugins/api.md +2 -0
  302. package/docs/plugin/server-plugins/life-cycle.md +2 -0
  303. package/docs/tutorials/examples/csr-auth.md +2 -0
  304. package/docs/tutorials/foundations/introduction.md +2 -0
  305. package/package.json +30 -38
  306. package/dist/cjs/builder/shared/builderPlugins/adapterPrecompress.js +0 -125
  307. package/dist/cjs/config/build-environment.js +0 -268
  308. package/dist/cjs/config/public.js +0 -46
  309. package/dist/cjs/plugins/backend-federation/codegen.js +0 -256
  310. package/dist/cjs/plugins/backend-federation/config.js +0 -204
  311. package/dist/cjs/plugins/backend-federation/emit.js +0 -150
  312. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js +0 -62
  313. package/dist/cjs/plugins/deploy/utils/npmAliases.js +0 -226
  314. package/dist/cjs/plugins/ultramodernReleaseEnvelope.js +0 -44
  315. package/dist/cjs/presetUltramodern.js +0 -168
  316. package/dist/cjs/types/config/precompress.js +0 -18
  317. package/dist/esm/builder/shared/builderPlugins/adapterPrecompress.mjs +0 -77
  318. package/dist/esm/config/build-environment.mjs +0 -224
  319. package/dist/esm/config/public.mjs +0 -1
  320. package/dist/esm/plugins/backend-federation/codegen.mjs +0 -205
  321. package/dist/esm/plugins/backend-federation/config.mjs +0 -128
  322. package/dist/esm/plugins/backend-federation/emit.mjs +0 -99
  323. package/dist/esm/plugins/backendFederationBuild.mjs +0 -1
  324. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +0 -1
  325. package/dist/esm/plugins/deploy/utils/npmAliases.mjs +0 -174
  326. package/dist/esm/plugins/ultramodernReleaseEnvelope.mjs +0 -6
  327. package/dist/esm/presetUltramodern.mjs +0 -112
  328. package/dist/esm/types/config/precompress.mjs +0 -0
  329. package/dist/esm-node/builder/shared/builderPlugins/adapterPrecompress.mjs +0 -78
  330. package/dist/esm-node/config/build-environment.mjs +0 -225
  331. package/dist/esm-node/config/public.mjs +0 -2
  332. package/dist/esm-node/plugins/backend-federation/codegen.mjs +0 -206
  333. package/dist/esm-node/plugins/backend-federation/config.mjs +0 -129
  334. package/dist/esm-node/plugins/backend-federation/emit.mjs +0 -100
  335. package/dist/esm-node/plugins/backendFederationBuild.mjs +0 -2
  336. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +0 -2
  337. package/dist/esm-node/plugins/deploy/utils/npmAliases.mjs +0 -175
  338. package/dist/esm-node/plugins/ultramodernReleaseEnvelope.mjs +0 -7
  339. package/dist/esm-node/presetUltramodern.mjs +0 -113
  340. package/dist/esm-node/types/config/precompress.mjs +0 -1
  341. package/dist/types/builder/shared/builderPlugins/adapterPrecompress.d.ts +0 -3
  342. package/dist/types/config/build-environment.d.ts +0 -22
  343. package/dist/types/config/public.d.ts +0 -2
  344. package/dist/types/plugins/backend-federation/codegen.d.ts +0 -86
  345. package/dist/types/plugins/backend-federation/config.d.ts +0 -103
  346. package/dist/types/plugins/backend-federation/emit.d.ts +0 -13
  347. package/dist/types/plugins/backendFederationBuild.d.ts +0 -2
  348. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts +0 -1
  349. package/dist/types/plugins/deploy/utils/npmAliases.d.ts +0 -14
  350. package/dist/types/plugins/ultramodernReleaseEnvelope.d.ts +0 -3
  351. package/dist/types/presetUltramodern.d.ts +0 -87
  352. package/dist/types/types/config/precompress.d.ts +0 -20
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Upgrading
2
4
 
3
5
 
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Application-Level Modules
2
4
 
3
5
  Modern.js provides runtime APIs to quickly export application-level Module Federation modules from your application.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Deployment
2
4
 
3
5
  In general, when deploying a Module Federation application, there are two key points to consider:
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Integrating Internationalization
2
4
 
3
5
  Modern.js provides the **@modern-js/plugin-i18n** plugin to support internationalization. When using Module Federation, you need to provide corresponding i18n integration solutions for different scenarios (components or applications).
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Introduction
2
4
 
3
5
  Module Federation is an architectural pattern for dividing JavaScript applications, allowing you to share code and resources among multiple JavaScript applications.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Server-Side Rendering
2
4
 
3
5
  `@module-federation/modern-js-v3` offers powerful capabilities, enabling developers to easily combine Module Federation with server-side rendering (SSR) in Modern.js applications.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Getting Started
2
4
 
3
5
  To use Module Federation in Modern.js, we recommend using the official plugin `@module-federation/modern-js-v3`.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Build FAQ
2
4
 
3
5
  If you encounter any build-related issues, you can refer to the current document for troubleshooting.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # CLI FAQ
2
4
 
3
5
  ### Unable to pass command line arguments correctly when using pnpm?
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Dependencies FAQ
2
4
 
3
5
  ### How to check the actual installed version of a dependency in the project?
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # HMR FAQ
2
4
 
3
5
  ### How to troubleshooting HMR ineffective issues?
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Configuration Changes
2
4
 
3
5
  This document mainly introduces incompatible configuration changes and recommended migration methods when upgrading from Modern.js 2.0 to 3.0.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Entry Changes
2
4
 
3
5
  This chapter introduces changes related to page entries when upgrading from Modern.js 2.0 to 3.0.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Other Important Changes
2
4
 
3
5
  This document introduces other important incompatible changes and related migration instructions when upgrading from Modern.js 2.0 to 3.0.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Overview
2
4
 
3
5
  This guide will help you upgrade from Modern.js 2.0 to Modern.js 3.0.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Tailwind Plugin Changes
2
4
 
3
5
  Modern.js 3.0 recommends integrating Tailwind CSS through Rsbuild's native approach, no longer relying on the `@modern-js/plugin-tailwindcss` plugin, to fully utilize Rsbuild's more flexible configuration capabilities and better build experience.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Custom Web Server Changes
2
4
 
3
5
  This chapter covers upgrades for two types of legacy custom Server APIs:
package/docs/index.md CHANGED
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  [NEWUltraModern.js 3.0 is ready for SuperApps→](/guides/get-started/ultramodern)
2
4
 
3
5
  # UltraModern.js 3.0The SuperApp framework for Effect, TanStack, SSR, BFF, and Micro Verticals
package/docs/llms.txt CHANGED
@@ -47,7 +47,7 @@
47
47
  - [Deploy Application](/guides/basic-features/deploy.md): Currently, Modern.js offers two deployment way: You can host your application in a container that includes a Node.js environment on your own, which provides flexibility for the deployment of the application.You can also deploy your application through a platform. Currently, Modern.js officially supports deployment on Netlify, Vercel, and Github pages.
48
48
  - [BFF](/guides/advanced-features/bff.md): BFF (Backends for Frontends) is an architectural pattern primarily used to address issues of data aggregation in front-end and back-end collaboration. Under the BFF architecture, front-end applications do not communicate directly with backend services. Instead, they interact with backend services through a dedicated BFF middleware layer, custom-made for the front end. The main problems it tries to solve include: Aggregation, mapping, clipping, and proxying of lower-level APIs according to their own business needs.Cache data for some specific scenarios to improve performance and thus improve user experience.Quickly development of new products based on existing interfaces.Interface with third-party systems, such as login authentication. Modern.js officially supported the BFF and provided the Integrated BFF to further strengthen the BFF's capabilities, mainly including the following capabilities: Quick development and debugging go live, running, building, and deploying BFF code in the same project.Minimal pure function call, directly import BFF function on the front end, and can be automatically converted into HTTP request when called.No private protocol, follow RESTful API specification, all BFF interfaces are standardized.Full TypeScript support.Meet user preferences and support multi-frame extension writing.
49
49
  - [Basic Usage](/guides/advanced-features/bff/function.md): In a Modern.js application, developers can define API files under the api/lambda directory and export API functions from these files. In the frontend code, these API functions can be directly invoked by importing the file, which initiates the API requests. This invocation method is called unified invocation, where developers do not need to write glue code for the frontend and backend separately, thereby ensuring type safety across both.
50
- - [Runtime Framework](/guides/advanced-features/bff/frameworks.md): Modern.js supports two BFF runtime frameworks: effect (default): use Effect HttpApi runtime from api/index.hono: use file-convention BFF handlers from api/lambda/**. effect and hono are strict runtime modes. There is no automatic fallback between them. ::::info Generated UltraModern workspaces use strict Effect APIs: author HTTP APIs in shared/api.ts and api/index.ts, not Hono/file-convention handlers. ::::
50
+ - [Runtime Framework](/guides/advanced-features/bff/frameworks.md): Modern.js and the UltraModern BFF extension provide two runtime frameworks: hono is the native plugin default and uses file-convention handlers from api/lambda/**.effect is the UltraModern extension default and uses Effect HttpApi from api/index. effect and hono are strict runtime modes. There is no automatic fallback between them. ::::info Generated UltraModern workspaces use strict Effect APIs: author HTTP APIs in shared/api.ts and api/index.ts, not Hono/file-convention handlers. ::::
51
51
  - [Data Platform](/guides/advanced-features/bff/data-platform.md): Modern.js Effect API runtime now supports a request-envelope based data platform contract for safer and more predictable data orchestration in complex applications such as Module Federation and micro frontends.
52
52
  - [Creating Extensible BFF Functions](/guides/advanced-features/bff/operators.md): The previous section showed how to export a simple BFF function in a file. In more complex scenarios, each BFF function may need to do independent type validation, pre-logic, etc. Therefore, Modern.js exposes Api, which supports creating BFF functions through this API. BFF functions created in this way can be easily extended with functionality.
53
53
  - [Extend BFF Server](/guides/advanced-features/bff/extend-server.md): In some applications, developers may want to handle all BFF functions uniformly, such as authentication, logging, data processing, etc. Modern.js allows users to freely extend the BFF Server through Middleware method.
@@ -111,7 +111,7 @@
111
111
  - [watchFiles](/configure/app/dev/watch-files.md): Type: Default: undefined Watch specified files and directories for changes. When a file change is detected, it can trigger a page reload or restart the dev server.
112
112
  - [writeToDisk](/configure/app/dev/write-to-disk.md): Type: boolean | ((filename: string) => boolean)Default: (file) => !file.includes('.hot-update.') Controls whether the build output from development mode is written to disk.
113
113
  - [crossProject](/configure/app/bff/cross-project.md): Type: booleanDefault: false This configuration is used to enable BFF cross-project invocation functionality. When enabled, the current project can be used as a BFF producer, generating an SDK that can be directly called by other projects. For detailed configuration and usage of BFF cross-project invocation, please refer to the BFF Cross-Project Invocation Guide.
114
- - [effect](/configure/app/bff/effect.md): Type: Default: {} bff.effect is only effective when bff.runtimeFramework is set to 'effect'. Generated UltraModern workspaces use this runtime as the only generated HTTP API path. The API contract lives at shared/api.ts, the server runtime lives at api/index.ts, clients live under src/api/*-client.ts, and generated checks reject api/effect, api/lambda, shared/effect, src/effect, Hono server imports, raw request handlers, manual request parsing, and manual Response construction in API modules. For Effect v4, TypeScript should use export-map aware module resolution.
114
+ - [effect](/configure/app/bff/effect.md): Type: Default: {} bff.effect is only effective when bff.runtimeFramework is set to 'effect'. Use bffPlugin from @modern-js/plugin-bff-build-extensions to register the Effect runtime. It composes the native BFF plugin. Install @modern-js/bff-effect and @modern-js/plugin-bff-extensions from the same framework cohort as application production dependencies, so the adapter remains available after development dependencies are removed. The build plugin can be a development dependency. See the runtime configuration example. Native @modern-js/plugin-bff/server exports Hono APIs. For Node Effect APIs, import framework helpers such as defineEffectBff from @modern-js/bff-effect/effect and namespaces from the corresponding effect/* modules. Worker handlers and worker request context use @modern-js/bff-effect/effect-edge. Generated UltraModern workspaces use this runtime as the only generated HTTP API path. The API contract lives at shared/api.ts, the server runtime lives at api/index.ts, clients live under src/api/*-client.ts, and generated checks reject api/effect, api/lambda, shared/effect, src/effect, Hono server imports, raw request handlers, manual request parsing, and manual Response construction in API modules. For Effect v4, TypeScript should use export-map aware module resolution.
115
115
  - [prefix](/configure/app/bff/prefix.md): Type: stringDefault: /api By default, the prefix for accessing routes in the BFF API directory is /api, as shown in the following directory structure: The route corresponding to api/hello.ts when accessed is localhost:8080/api/hello. This configuration option can modify the default route prefix: The corresponding route for api/hello.ts when accessed is localhost:8080/api-demo/hello.
116
116
  - [runtimeFramework](/configure/app/bff/runtime-framework.md): Type: 'hono' | 'effect'Default: 'effect' Controls which runtime framework Modern.js uses for BFF routing. Set to 'effect' to run BFF only from api/index (Effect HttpApi runtime).Set to 'hono' to run BFF only from file-convention handlers under api/lambda/**. There is no implicit fallback between runtimes. Choose one runtime mode per app. Generated UltraModern apps use strict Effect APIs by default and set bff.effect.strictEffectApproach: true; hono and api/lambda/** are not valid generated UltraModern HTTP API paths.
117
117
  - [appIcon](/configure/app/html/app-icon.md): Type: Default: undefined Set the web application icons to display when added to the home screen of a mobile device: Generate the web app manifest file and its icons field.Generate the apple-touch-icon and manifest tags in the HTML file.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # CLI Plugin API
2
4
 
3
5
  Modern.js's CLI plugins allow you to extend and customize the functionality of Modern.js projects during the build and development process.
@@ -1,2 +1,4 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Life Cycle
2
4
 
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Introduction
2
4
 
3
5
  Modern.js provides a powerful plugin system that allows developers to extend the framework's functionality, customize the build process, and meet a variety of personalized development needs. Whether you want to add a custom command, optimize build output, or implement a unique deployment solution, Modern.js's plugin system provides robust support.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # BFF Plugin
2
4
 
3
5
  In a Modern.js application, developers can define API files under the `api/lambda` directory and export API functions using the BFF plugin. In the frontend code, these API functions can be directly invoked by importing the file, which initiates the API requests.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # SSG Plugin
2
4
 
3
5
  SSG (Static Site Generation) is a technical solution that renders complete static web pages at build time based on data and templates. This means that in a production environment, pages are populated with content by default and can be cached by a CDN. For pages that do not require dynamic data, SSG can provide better performance and higher security.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Styled Components Plugin
2
4
 
3
5
  In a Modern.js application, developers can use the Styled Components plugin to utilize the styled-components library within the app, enabling CSS-in-JS functionality.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Overview
2
4
 
3
5
  - [@modern-js/plugin-bff](/plugin/official/cli-plugins/plugin-bff.md): Provides BFF services and unified invocation capabilities.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Plugin System
2
4
 
3
5
  Modern.js adopts a highly extensible, plugin-based architecture, where its core functionalities and extended capabilities are implemented through plugins. The plugin system not only ensures the framework's flexibility but also provides developers with powerful customization options. This document focuses on how to write Modern.js plugins, helping you quickly get started with plugin development.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Plugin API
2
4
 
3
5
  Modern.js's Runtime Plugins allow you to extend and modify the behavior of your application during its React code execution. With Runtime Plugins, you can easily perform initialization tasks, implement React Higher-Order Component (HOC) wrapping, and more.
@@ -1,2 +1,4 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Life Cycle
2
4
 
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Plugin API
2
4
 
3
5
  Modern.js's Server plugins allow you to extend and customize functionality during the server-side request processing phase, such as adding middleware, modifying request responses, etc.
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Life Cycle
2
4
 
3
5
 
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Route Authorization
2
4
 
3
5
  UltraModern.js uses convention-based routing backed by TanStack Router. For more details, please refer to [Routing](/guides/basic-features/routes/routes.md#routing).
@@ -1,3 +1,5 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
1
3
  # Modern.js Example Library
2
4
 
3
5
  Welcome to Modern.js Example Library! Here you'll find practical code examples to help you get started with Modern.js quickly.
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.9.0-ultramodern.1",
20
+ "version": "3.9.0-ultramodern.11",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -37,12 +37,6 @@
37
37
  },
38
38
  "default": "./dist/cjs/builder/index.js"
39
39
  },
40
- "./config": {
41
- "types": "./dist/types/config/public.d.ts",
42
- "import": "./dist/esm-node/config/public.mjs",
43
- "require": "./dist/cjs/config/public.js",
44
- "default": "./dist/cjs/config/public.js"
45
- },
46
40
  "./cli": {
47
41
  "types": "./dist/types/index.d.ts",
48
42
  "node": {
@@ -59,11 +53,10 @@
59
53
  },
60
54
  "default": "./dist/cjs/run/index.js"
61
55
  },
62
- "./cloudflare-output-verifier": {
63
- "types": "./dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts",
64
- "import": "./dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs",
65
- "require": "./dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js",
66
- "default": "./dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js"
56
+ "./server-plugin": {
57
+ "types": "./dist/types/server-plugin.d.ts",
58
+ "import": "./dist/esm-node/server-plugin.mjs",
59
+ "require": "./dist/cjs/server-plugin.js"
67
60
  },
68
61
  "./types": {
69
62
  "types": "./lib/types.d.ts",
@@ -85,15 +78,15 @@
85
78
  "cli/run": [
86
79
  "./dist/types/run/index.d.ts"
87
80
  ],
81
+ "server-plugin": [
82
+ "./dist/types/server-plugin.d.ts"
83
+ ],
88
84
  "types": [
89
85
  "./lib/types.d.ts"
90
86
  ],
91
87
  "builder": [
92
88
  "./dist/types/builder/index.d.ts"
93
89
  ],
94
- "config": [
95
- "./dist/types/config/public.d.ts"
96
- ],
97
90
  "bundle-docs": [
98
91
  "./dist/types/bundleDocs.d.ts"
99
92
  ]
@@ -130,40 +123,40 @@
130
123
  }
131
124
  },
132
125
  "dependencies": {
133
- "@babel/parser": "^8.0.0",
134
- "@babel/traverse": "^8.0.0",
135
- "@babel/types": "^8.0.0",
126
+ "@babel/parser": "^8.0.4",
127
+ "@babel/traverse": "^8.0.4",
128
+ "@babel/types": "^8.0.4",
136
129
  "@loadable/component": "5.16.7",
137
- "@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.0-ultramodern.1",
138
- "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.9.0-ultramodern.1",
139
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.0-ultramodern.1",
140
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.1",
141
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.0-ultramodern.1",
142
- "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.0-ultramodern.1",
143
- "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.9.0-ultramodern.1",
144
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.1",
145
- "@modern-js/server-runtime-extensions": "npm:@bleedingdev/modern-js-server-runtime-extensions@3.9.0-ultramodern.1",
146
- "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.9.0-ultramodern.1",
147
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.1",
148
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.1",
149
- "@rsbuild/core": "2.2.0",
150
- "@swc/core": "1.15.43",
130
+ "@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.0-ultramodern.11",
131
+ "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.9.0-ultramodern.11",
132
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.0-ultramodern.11",
133
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.11",
134
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.0-ultramodern.11",
135
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.0-ultramodern.11",
136
+ "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.9.0-ultramodern.11",
137
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.11",
138
+ "@modern-js/server-runtime-extensions": "npm:@bleedingdev/modern-js-server-runtime-extensions@3.9.0-ultramodern.11",
139
+ "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.9.0-ultramodern.11",
140
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.11",
141
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.11",
142
+ "@rsbuild/core": "2.2.3",
143
+ "@swc/core": "1.16.2",
151
144
  "@swc/helpers": "^0.5.23",
152
145
  "compression-webpack-plugin": "^12.0.0",
153
- "es-module-lexer": "^2.3.0",
154
- "esbuild": "^0.28.1",
146
+ "es-module-lexer": "^2.3.2",
147
+ "esbuild": "^0.28.2",
155
148
  "flatted": "^3.4.4",
156
149
  "import-meta-resolve": "^4.2.0",
157
150
  "mlly": "^1.8.2",
158
151
  "ndepe": "^0.1.13",
159
- "pkg-types": "^2.3.1",
152
+ "pkg-types": "^2.3.2",
160
153
  "std-env": "4.2.0"
161
154
  },
162
155
  "devDependencies": {
163
156
  "@rslib/core": "1.0.0",
164
157
  "@scripts/rstest-config": "2.66.0",
165
158
  "@types/babel__traverse": "7.28.0",
166
- "@types/node": "^26.2.0",
159
+ "@types/node": "^26.4.1",
167
160
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
168
161
  "typescript": "^7.0.2"
169
162
  },
@@ -173,8 +166,7 @@
173
166
  },
174
167
  "scripts": {
175
168
  "dev": "rslib build --watch",
176
- "build": "rslib build && pnpm run verify:public-surface && node ./bin/modern-bundle-docs.js",
177
- "verify:public-surface": "node ./tests/config/verify-public-surface.mjs",
169
+ "build": "rslib build && node ./bin/modern-bundle-docs.js",
178
170
  "test": "rstest"
179
171
  }
180
172
  }
@@ -1,125 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.n = (module)=>{
5
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
6
- __webpack_require__.d(getter, {
7
- a: getter
8
- });
9
- return getter;
10
- };
11
- })();
12
- (()=>{
13
- __webpack_require__.d = (exports1, getters, values)=>{
14
- var define = (defs, kind)=>{
15
- for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
16
- enumerable: true,
17
- [kind]: defs[key]
18
- });
19
- };
20
- define(getters, "get");
21
- define(values, "value");
22
- };
23
- })();
24
- (()=>{
25
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
26
- })();
27
- (()=>{
28
- __webpack_require__.r = (exports1)=>{
29
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
30
- value: 'Module'
31
- });
32
- Object.defineProperty(exports1, '__esModule', {
33
- value: true
34
- });
35
- };
36
- })();
37
- var __webpack_exports__ = {};
38
- __webpack_require__.r(__webpack_exports__);
39
- __webpack_require__.d(__webpack_exports__, {
40
- builderPluginAdapterPrecompress: ()=>builderPluginAdapterPrecompress
41
- });
42
- const external_node_zlib_namespaceObject = require("node:zlib");
43
- const external_compression_webpack_plugin_namespaceObject = require("compression-webpack-plugin");
44
- var external_compression_webpack_plugin_default = /*#__PURE__*/ __webpack_require__.n(external_compression_webpack_plugin_namespaceObject);
45
- const DEFAULT_PRECOMPRESS_TEST = /\.(js|mjs|cjs|css|html|svg|json|map)$/i;
46
- const DEFAULT_PRECOMPRESS_THRESHOLD = 10240;
47
- const DEFAULT_PRECOMPRESS_MIN_RATIO = 0.8;
48
- const createDefaultGzipOptions = ()=>({
49
- algorithm: 'gzip',
50
- filename: '[path][base].gz',
51
- test: DEFAULT_PRECOMPRESS_TEST,
52
- threshold: DEFAULT_PRECOMPRESS_THRESHOLD,
53
- minRatio: DEFAULT_PRECOMPRESS_MIN_RATIO,
54
- compressionOptions: {
55
- level: 6
56
- }
57
- });
58
- const createDefaultBrotliOptions = ()=>({
59
- algorithm: 'brotliCompress',
60
- filename: '[path][base].br',
61
- test: DEFAULT_PRECOMPRESS_TEST,
62
- threshold: DEFAULT_PRECOMPRESS_THRESHOLD,
63
- minRatio: DEFAULT_PRECOMPRESS_MIN_RATIO,
64
- compressionOptions: {
65
- params: {
66
- [external_node_zlib_namespaceObject.constants.BROTLI_PARAM_QUALITY]: 9
67
- }
68
- }
69
- });
70
- const mergeCompressionOptions = (base, next)=>{
71
- const merged = {
72
- ...base,
73
- ...next
74
- };
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
- }
88
- return merged;
89
- };
90
- const resolveCodecOptions = (codecConfig, createDefaultOptions)=>{
91
- if (false === codecConfig) return null;
92
- if (void 0 === codecConfig || true === codecConfig) return createDefaultOptions();
93
- return mergeCompressionOptions(createDefaultOptions(), codecConfig);
94
- };
95
- const resolvePrecompressConfig = (normalizedConfig)=>{
96
- const precompress = normalizedConfig.output.precompress;
97
- if (false === precompress || void 0 === precompress) return false;
98
- if (true === precompress) return {};
99
- return precompress;
100
- };
101
- const builderPluginAdapterPrecompress = (options)=>({
102
- name: 'builder-plugin-adapter-modern-precompress',
103
- setup (api) {
104
- api.modifyBundlerChain((chain, { isProd, target })=>{
105
- if (!isProd || 'web' !== target) return;
106
- const precompressConfig = resolvePrecompressConfig(options.normalizedConfig);
107
- if (false === precompressConfig) return;
108
- const gzipOptions = resolveCodecOptions(precompressConfig.gzip, createDefaultGzipOptions);
109
- if (gzipOptions) chain.plugin('modern-precompress-gzip').use(external_compression_webpack_plugin_default(), [
110
- gzipOptions
111
- ]);
112
- const brotliOptions = resolveCodecOptions(precompressConfig.brotli, createDefaultBrotliOptions);
113
- if (brotliOptions) chain.plugin('modern-precompress-brotli').use(external_compression_webpack_plugin_default(), [
114
- brotliOptions
115
- ]);
116
- });
117
- }
118
- });
119
- exports.builderPluginAdapterPrecompress = __webpack_exports__.builderPluginAdapterPrecompress;
120
- for(var __rspack_i in __webpack_exports__)if (-1 === [
121
- "builderPluginAdapterPrecompress"
122
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
123
- Object.defineProperty(exports, '__esModule', {
124
- value: true
125
- });