What's Changed
- 新增
addPrepareBuildPlugins
及onPrepareBuildSuccess
插件 API,在构建之前采集项目的源码信息用于分析或实现插件功能 by @sorrycc in #10367 - 优化 Webpack 编译时模块解析的文件识别顺序以提升性能 by @sorrycc in #10326
- 优化 access 插件提供的运行时 API 类型定义 by @mmmml-zhao in #10259
- 优化 Umi 的启动速度 by @sorrycc in #10361
- 优化 phantomDependency 幽灵依赖检查特性的实现 by @sorrycc in #10369
- 优化 mf 的产物名称,dev 下不启用 hash 便于调试 by @stormslowly in #10374
- 优化
exporStatic.extraRoutePaths
配置项,支持对部分路由禁用预渲染 by @PeachScript in #10371 - 优化 mf 插件的默认配置以兼容 MFSU by @stormslowly in #10380
- 修复通过
@
别名引入的 icon 不识别的问题 by @fz6m in #10339 - 修复 react-query 插件在 Windows 下包路径识别报错的问题 by @Jokergga in #10344
- 修复 styled-components 插件在 Windows 下编译报错的问题 by @fz6m in #10346
- 修复 MFSU eager 模式下 copy 插件未禁用的问题 by @stormslowly in #10331
- 修复 tailwindcss 生成器不兼容无
src
项目的问题 by @sorrycc in #10350 - 修复 mpa 特性在 Windows 下编译报错的问题 by @fz6m in #10364
- 修复 Node.js v14.17.x 环境下执行 prettier 报错的问题 by @hanzebang in #10366
- 修复 jest 生成器配置误识别框架测试环境配置
.umirc.test.ts
的问题 by @stormslowly in #10221 - 更新 did you know 数据 by @fz6m in #10365
New Contributors
- @Jiacheng787 made their first contribution in #10311
- @mmmml-zhao made their first contribution in #10259
- @Jokergga made their first contribution in #10344
Full Changelog: v4.0.47...v4.0.48