v2.25.0
What's Changed
New Features 🎉
- feat: add named exports for all solutions by @chenjiahan in #4033
- feat: add DemoBlock for preview in mobile mode by @10Derozan in #4052
- feat(prod-server): get body from request when ssr mode by @GiveMe-A-Name in #4076
- feat(module-doc): support external demo by @sanyuan0704 in #4079
- feat: support skip build phase when run deploy command by @zllkjc in #4044
- feat: add named exports for solution new command by @caohuilin in #4041
- feat: support for fallback SSR using request header fields by @zllkjc in #4053
- feat: support markdown global components by @10Derozan in #4051
- feat: add named exports for all CLI plugins by @chenjiahan in #4036
- feat: new and upgrade command support custom config file by @caohuilin in #4056
- feat: update log content by @targeral in #4055
Bug Fixes 🐞
- fix: keep original fileChange hook, but add private configuration by @zllkjc in #4042
- fix(module-doc): api table render error by @sanyuan0704 in #4075
- fix(doc-core): normalize windows path in loader by @sanyuan0704 in #4063
- fix(doc-core): _meta.json hmr not work by @sanyuan0704 in #4034
- fix: merge with the latest context when calling
setAppContextby @xuchaobei in #4047 - fix(doc-core): .md comment compile error by @sanyuan0704 in #4039
- fix(doc-core): encode filename to be compatible with Windows by @chenjiahan in #4050
- fix: generator and generator plugin not exist test dir by @caohuilin in #4069
- fix(doc-core): mock ssr window by @sanyuan0704 in #4068
- fix: jest unexpected token error for @modern-js/runtime by @targeral in #4070
- fix(builder): should print recompile log if have type errors by @chenjiahan in #4065
- fix(module-doc): demo not show in mobile by @sanyuan0704 in #4084
- fix(doc-core): checkDeadLink failed in windows by @sanyuan0704 in #4054
- fix(bundle-require): bundle esm package with cjs modules by @chenjiahan in #4080
- fix(runtime): ssr link tag add attrs error by @GiveMe-A-Name in #4057
Docs update 📄
Other Changes
- chore(rspack-provider): update rspack to 0.2.4 by @9aoy in #4074
- chore(module-tools): reduce some sub-dependencies by @chenjiahan in #4071
- refactor: separate api generator from module doc and refactor with global components by @10Derozan in #4077
- refactor(app-tools): reuse copy upload config when using Rspack by @chenjiahan in #4030
- chore: simplify some eslint rules by @chenjiahan in #4043
更新内容
新特性 🎉
- feat: 为各个 solutions 添加 named 导出 由 @chenjiahan 实现, 详情可查看 #4033
- feat: 提供DemoBlock组件给移动端预览模式 由 @10Derozan 实现, 详情可查看 #4052
- feat(prod-server): 开启 ssr 时从 request 获取 body 由 @GiveMe-A-Name 实现, 详情可查看 #4076
- feat(module-doc): 支持外部 demo 由 @sanyuan0704 实现, 详情可查看 #4079
- feat: 支持在执行 deploy 命令时,跳过构建阶段 由 @zllkjc 实现, 详情可查看 #4044
- feat: 为 solution new 命令添加 named 导出 由 @caohuilin 实现, 详情可查看 #4041
- feat: 支持通过请求头字段来降级 SSR 由 @zllkjc 实现, 详情可查看 #4053
- feat: 支持在markdown作用域下注册全局组件 由 @10Derozan 实现, 详情可查看 #4051
- feat: 为各个 CLI 插件添加 named 导出 由 @chenjiahan 实现, 详情可查看 #4036
- feat: new 和 upgrade 命令支持自定义配置文件路径 由 @caohuilin 实现, 详情可查看 #4056
- feat: 更新日志内容 由 @targeral 实现, 详情可查看 #4055
Bug 修复 🐞
- fix: 保留原有的 fileChange 钩子功能,但新增 private 配置 由 @zllkjc 实现, 详情可查看 #4042
- fix(module-doc): 修复模块文档 api table 渲染错误 由 @sanyuan0704 实现, 详情可查看 #4075
- fix(doc-core): 在 loader 中规范化 windows 路径 由 @sanyuan0704 实现, 详情可查看 #4063
- fix: 调用
setAppContext时, 获取最新的 App Context 进行合并 由 @xuchaobei 实现, 详情可查看 #4047 - fix(doc-core): .md 文件中的注释导致编译报错 由 @sanyuan0704 实现, 详情可查看 #4039
- fix(doc-core): encode filename 以修复 Windows 兼容问题 由 @chenjiahan 实现, 详情可查看 #4050
- fix: 修复创建微生成器和生成器插件时不存在 test 目录 由 @caohuilin 实现, 详情可查看 #4069
- fix(doc-core): ssr 阶段 mock window 由 @sanyuan0704 实现, 详情可查看 #4068
- fix: 修复 Jest 对于 @modern-js/runtime 出现 unexpected token 的错误 由 @targeral 实现, 详情可查看 #4070
- fix(builder): 如果存在类型错误,则打印 recompile 日志 由 @chenjiahan 实现, 详情可查看 #4065
- fix(module-doc): 修复移动端 demo 不显示问题 由 @sanyuan0704 实现, 详情可查看 #4084
- fix(doc-core): 死链检测在 windows 下失败 由 @sanyuan0704 实现, 详情可查看 #4054
- fix(bundle-require): 支持打包 esm package 包含 cjs 模块的情况 由 @chenjiahan 实现, 详情可查看 #4080
- fix(runtime): ssr link 标签添加错误的属性 由 @GiveMe-A-Name 实现, 详情可查看 #4057
文档更新 📄
其他变更
- chore(rspack-provider): 升级 rspack 相关依赖到 0.2.4 由 @9aoy 实现, 详情可查看 #4074
- chore(module-tools): 优化一些子依赖 由 @chenjiahan 实现, 详情可查看 #4071
- refactor: 将 api 生成功能从模块文档插件中分离出来,并以全局组件的形式重构 由 @10Derozan 实现, 详情可查看 #4077
- refactor(app-tools): 使用 Rspack 时复用 copy upload 配置 由 @chenjiahan 实现, 详情可查看 #4030
- chore: 简化一些 eslint 规则 由 @chenjiahan 实现, 详情可查看 #4043