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

v4.0.0-rc.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@sorrycc sorrycc released this 03 Mar 07:56
· 657 commits to master since this release

1、vite 模式开启方式变更,之前通过不正式的命令行参数 --vite,现改用配置 vite: {} 开启

export default {
  vite: {}
}

2、修复 plugins moment2dayjs 和 qiankun 在 windows 下路径报错的问题,截止目前为止,examples 目录下的 ant-design-pro 和 bigfish 均可在 windows 下正常运行

3、新增 crossorigin 支持,通过配置 crossorign 开启,通常用于脚本的错误监控

export default {
  crossorigin: {}
}

4、Umi 安装包瘦身,@swc/core 改用按需安装的方式,即如果大家在配置里开启 srcTranspiler: 'swc' 或 depTranspiler: 'swc',那启动时会检测 package.json 中是否存在 @swc/core,如果没有,会自动安装一份到项目目录

info  - [plugin: @umijs/preset-umi/dist/features/depsOnDemand/depsOnDemand] Since swc is used, install @swc/core on demand.

5、依赖升级,包括 @parcel/[email protected][email protected][email protected][email protected]