v2.57.0
What's Changed
New Features 🎉
- feat(ssr): support server.ssrByRouteIds by @yimingjfe in #5986
- feat: inject renderHandler to appContext & add default serverPlugins by @GiveMe-A-Name in #6012
- feat(ssg): support ssg with bff.enableHandleWeb by @yimingjfe in #5983
- feat: reexport new dev options by @GiveMe-A-Name in #6004
- feat: refactor runtime plugin hooks by @caohuilin in #5988
- feat: Support Runtime Plugin Communication by @caohuilin in #5988
Bug Fixes 🐞
- fix: data loader support async-node target by @2heal1 in #6016
- fix: more runtime plugin add alias not work by @caohuilin in #6002
- fix: add deferedDataScripts only streaming ssr by @GiveMe-A-Name in #6022
- fix(plugin-garfish): can not import garfish runtime directly which has sideffect by @2heal1 in #5997
- fix: type error when registering Rsbuild plugins by @chenjiahan in #6018
- fix: dev server should call rsbuild.afterListen when listen by @GiveMe-A-Name in #6008
- fix: user can get status in afterRenderContext by @GiveMe-A-Name in #6009
- fix: distPath should from output.distPath.root by @GiveMe-A-Name in #6010
- fix: we should export
getLoaderCtx
from server-core by @GiveMe-A-Name in #6020 - fix:
createDevServer
should not listen port by default by @GiveMe-A-Name in #6000 - fix: mergeConfig function to return an object when the first configuration is not an object by @caohuilin in #6024
- fix: react 17 ssr context error by @caohuilin in #6023
- fix: faviconPlugin should after staticPlugin by @GiveMe-A-Name in #6019
更新内容
新特性 🎉
- feat(ssr): 支持 server.ssrByRouteIds 由 @yimingjfe 实现, 详情可查看 #5986
- feat: 注入 renderHandler 到 appContext & 新增默认 serverPlugins 由 @GiveMe-A-Name 实现, 详情可查看 #6012
- feat(ssg): 支持 ssg 和 bff.enableHandleWeb 一起使用 由 @yimingjfe 实现, 详情可查看 #5983
- feat: 重导出 dev 配置 由 @GiveMe-A-Name 实现, 详情可查看 #6004
- feat: 重构 runtime 插件钩子函数 由 @caohuilin 实现, 详情可查看 #5988
- feat: 支持 Runtime 插件通信 由 @caohuilin 实现, 详情可查看 #5988
Bug 修复 🐞
- fix: 多个 runtime 插件添加 runtime 路径别名时不符合预期 由 @caohuilin 实现, 详情可查看 #6002
- fix: 只有在 streaming ssr 时才添加 deferedDataScripts 由 @GiveMe-A-Name 实现, 详情可查看 #6022
- fix(plugin-garfish): 不能直接注入带有副作用的 garfish runtime 由 @2heal1 实现, 详情可查看 #5997
- fix: dev server 应该在 listen 时,调用 rsbuild.afterListen 由 @GiveMe-A-Name 实现, 详情可查看 #6008
- fix: 用户可以从 afterRenderContext 上拿到 status 由 @GiveMe-A-Name 实现, 详情可查看 #6009
- fix: distPath 应该来自 output.distPath.root 由 @GiveMe-A-Name 实现, 详情可查看 #6010
- fix: 我们应该从 server-core 导出
getLoaderCtx
由 @GiveMe-A-Name 实现, 详情可查看 #6020 - fix:
createDevServer
默认不应该监听端口 由 @GiveMe-A-Name 实现, 详情可查看 #6000 - fix: 修复 mergeConfig 函数,使其在第一个配置非对象时返回对象 由 @caohuilin 实现, 详情可查看 #6024
- fix: 修复 react 17 ssr 找不到 runtimeReactContext 报错 由 @caohuilin 实现, 详情可查看 #6023
- fix: faviconPlugin 应该在 staticPlugin 之后 由 @GiveMe-A-Name 实现, 详情可查看 #6019