v2.32.0
What's Changed
New Features 🎉
- feat(generators): simplify .gitignore and .npmignore template by @chenjiahan in #4495
- feat: support loader context by @GiveMe-A-Name in #4472
- feat(builder): enable minifyJS/minifyCSS of HTML plugin by default by @9aoy in #4471
- feat: add lodash option to enable or disbale lodash feature by @targeral in #4468
- feat: fix hot module replacement error and support microfront-end fast refresh by @nyqykk in #4481
- feat: support client-data file by @yimingjfe in #4470
- feat: add transformLodash option to enable or disable lodash feature by @targeral in #4468
- feat: support ssr resources preload by @GiveMe-A-Name in #4463
- feat: report time for server loader by @yimingjfe in #4494
Bug Fixes 🐞
- fix about server timing not use metaName at some case by @spencerHT in #4483
- fix: integration test, and export LoaderContext from utils by @GiveMe-A-Name in #4490
- fix: route.json fit ssr.preload by @GiveMe-A-Name in #4496
- fix: packaging errors found by publint by @chenjiahan in #4467
- fix: WebSocket upgrade handler cause HMR connection issue by @Asuka109 in #4487
- fix(doc-core): reletive link error in runtime by @sanyuan0704 in #4493
- fix: update server reportTimings name by @GiveMe-A-Name in #4492
- fix: collects ServerReportTiming Names, and then reports it only when cost != 0 by @GiveMe-A-Name in #4475
- fix(doc-core): links cannot be opened in a new tab by @t1ger2080 in #4428
- fix: should update asset when only html exists by @yimingjfe in #4476
- fix: component Style render error content by @clChenLiang in #4469
- fix(doc-core): avoid external image compile error by @sanyuan0704 in #4501
Docs update 📄
Other Changes
- chore(builder): move performance config default value to shared by @chenjiahan in #4464
- chore: When the page component exists, keep the layout component by @yimingjfe in #4484
- chore(builder): When building with Rspack, check whether the current Rspack version meets the minimum version requirements by @9aoy in #4474
- chore(builder): use standard utils to get and make up publicPath by @chenjiahan in #4499
- chore(plugin-tailwindcss): use glob shorthand in the default config by @chenjiahan in #4500
- chore(builder): using unified version of webpack-chain by @chenjiahan in #4486
- chore(generators): adjust build target to es2019 by @chenjiahan in #4465
- chore(doc-core): optimize sidebar style by @sanyuan0704 in #4498
更新内容
新特性 🎉
- feat(generators): 简化 .gitignore 和 .npmignore 模板 由 @chenjiahan 实现, 详情可查看 #4495
- feat: 支持 loader context 由 @GiveMe-A-Name 实现, 详情可查看 #4472
- feat(builder): 默认开启 htmlPlugin minifyJS/minifyCSS 等能力 由 @9aoy 实现, 详情可查看 #4471
- feat: 添加 lodash 配置来打开或关闭 lodash 功能 由 @targeral 实现, 详情可查看 #4468
- 修复微前端场景下热更新异常问题,支持微前端场景下使用 fast refresh 由 @nyqykk 实现, 详情可查看 #4481
- feat: 支持 client-data 文件 由 @yimingjfe 实现, 详情可查看 #4470
- feat: 添加 transformLodash 选项控制 lodash 功能的开启或关闭 由 @targeral 实现, 详情可查看 #4468
- feat: 支持 ssr 资源预加载 由 @GiveMe-A-Name 实现, 详情可查看 #4463
- feat: 上报 server loader 执行的时间 由 @yimingjfe 实现, 详情可查看 #4494
Bug 修复 🐞
- fix: 集成测试,然后导出 LoaderContext 由 @GiveMe-A-Name 实现, 详情可查看 #4490
- fix: route.json 适配 ssr.preload 由 @GiveMe-A-Name 实现, 详情可查看 #4496
- fix: 修复 publint 检测到的 packaging 问题 由 @chenjiahan 实现, 详情可查看 #4467
- fix: WebSocket upgrade handler 导致 HMR 连接错误 由 @Asuka109 实现, 详情可查看 #4487
- fix(doc-core): 相对路径运行时错误 由 @sanyuan0704 实现, 详情可查看 #4493
- fix: 更新 server reportTimings 名称 由 @GiveMe-A-Name 实现, 详情可查看 #4492
- fix: 收集 ServerReportTiming Names, 然后只有在 cost !=0 时才报告它 由 @GiveMe-A-Name 实现, 详情可查看 #4475
- fix: 只有当 html 存在时,才更新资源 由 @yimingjfe 实现, 详情可查看 #4476
- fix: component Style 渲染了错误的内容 由 @clChenLiang 实现, 详情可查看 #4469
- fix(doc-core): 避免外部图片编译错误 由 @sanyuan0704 实现, 详情可查看 #4501
文档更新 📄
其他变更
- chore(builder): 移动 performance 默认配置到 shared 中 由 @chenjiahan 实现, 详情可查看 #4464
- chore: 当 page 组件存在时,保留 layout 组件 由 @yimingjfe 实现, 详情可查看 #4484
- chore(builder): 使用 Rspack 构建时,检查当前 Rspack 版本是否满足最低版本要求 由 @9aoy 实现, 详情可查看 #4474
- chore(builder): 使用标准的 utils 来读取和组装 publicPath 由 @chenjiahan 实现, 详情可查看 #4499
- chore(plugin-tailwindcss): 在默认配置中使用 glob 缩写 由 @chenjiahan 实现, 详情可查看 #4500
- chore(builder): 使用统一的 webpack-chain 版本 由 @chenjiahan 实现, 详情可查看 #4486
- chore(generators): 调整构建的 target 为 es2019 由 @chenjiahan 实现, 详情可查看 #4465
- chore(doc-core): 优化侧边栏样式 由 @sanyuan0704 实现, 详情可查看 #4498