Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

v4.0.0-rc.13

Pre-release
Pre-release
Compare
Choose a tag to compare
@sorrycc sorrycc released this 21 Apr 08:54
· 354 commits to master since this release

支持 Vue
支持 Node 18,但不支持 Node 17
新增 patchClientRoutes 的 runtime hook
路由组件 props 可访问 location、params、searchParams 和 route
npmClientCheck 基于检测安装产物检测,之前基于 process.env.npm_config_user_agent 环境变量
新增 api.onBuildHtmlComplete
onCheckCode 的报错体验优化
MFSU 新增 runtimePublicPath 的配置
修复 MFSU 有配置 publicPath 时,MF 资源访问失败的问题
修复 config.outputPath 是绝对路径时的产物路径问题
修复有 APP_ROOT 时 mfsu 缓存路径,会导致 OOM
修复 @fs 导致的 ts 类型问题,同时非 Vite 模式不再转换为 @fs 路径
修复 umi/client 的浏览器兼容问题(缺点是增加了产物大小,需进一步完善)
plugin-request:修复类型问题,同时删除默认的 errorHandler 实现
plugin-docs:支持代码高亮
plugin-docs:logo 和 rightNavComponents 支持配置 React 组件
plugin-docs:新增 themeSwitch 配置项,同时默认关闭黑白主题切换功能,配置开启