v2.56.0
What's Changed
New Features 🎉
- feat: the runtime path use the meta alias in garfish provider by @caohuilin in #5949
- feat: server monitors interface unity by @GiveMe-A-Name in #5925
- feat: remove lodash dep from runtime mergeConfig function by @caohuilin in #5939
- feat: garfish plugin support custom behavior before render by @caohuilin in #5959
- feat: refactor the logic of the system file router entry by @caohuilin in #5943
Bug Fixes 🐞
- fix(prefetch): chunkId may be string or number by @yimingjfe in #5951
- fix(babel-preset): cjs extension should be js by @chenjiahan in #5952
- fix(plugin-runtime): failed to resolve @rsbuild/core by @chenjiahan in #5950
- fix: router plugin should receive request that method is GET by @GiveMe-A-Name in #5960
- fix: server runtime should get config.disablePrerender from ssr config by @GiveMe-A-Name in #5942
- fix: mockHandler should run before rsbuild middleware & mockHandler can't hmr correctly by @GiveMe-A-Name in #5954
- fix: ssrContext in browser should add document information by @GiveMe-A-Name in #5956
Other Changes
- refactor: bump rsbuild 1.0.0-alpha and use Rsbuild environment config by @9aoy in #5940
- chore: move babel-preset package by @chenjiahan in #5946
- chore(deps): bump rspress to 1.26.1 by @shulaoda in #5948
更新内容
新特性 🎉
- feat: 在 garfish provider 函数中使用 runtime 别名路径 由 @caohuilin 实现, 详情可查看 #5949
- feat: server 监控接口统一 由 @GiveMe-A-Name 实现, 详情可查看 #5925
- feat: mergeConfig 函数移除 lodash 依赖 由 @caohuilin 实现, 详情可查看 #5939
- feat: garfish 插件支持在 render 前自定义行为 由 @caohuilin 实现, 详情可查看 #5959
- feat: 重构文件系统路由入口逻辑 由 @caohuilin 实现, 详情可查看 #5943
Bug 修复 🐞
- fix(prefetch): chunkId 可能是 sstring 或 number 由 @yimingjfe 实现, 详情可查看 #5951
- fix: router 插件应该获得请求方法为 GET 的请求 由 @GiveMe-A-Name 实现, 详情可查看 #5960
- fix: server runtime 应该从 ssrconfig 获取 config.disablePrerender 由 @GiveMe-A-Name 实现, 详情可查看 #5942
- fix: mockHandler 应该在 rsbuild middleware 之前跑 & mockHandler 不能正确的 hmr 由 @GiveMe-A-Name 实现, 详情可查看 #5954
- fix: 在浏览器中的 ssrContext 应该添加 document 的信息 由 @GiveMe-A-Name 实现, 详情可查看 #5956