umi
umi copied to clipboard
A framework in react community ✨
 这里ws先使用再实例了 https://github.com/umijs/umi/pull/8271 修改代码顺序后就可以了
## 问题 现在是 JIT 的形式,这种方式不支持 esm。 ## 解法 1、增加一个 configBuilder,通过 esbuild 把用户配置打包临时目录,临时目录为 %%cacheDirectory%%/.umi-config 2、可能需要打包多份,比如用户有 .local 和配置了 UMI_ENV 的场景 3、build 时注意忽略依赖 4、需要收集项目文件的依赖链,提供给 watch 使用 5、读取 build 后的产物,遇到 2 的场景需要做合并
## What happens? 开启mfsu后报错export 'default' (imported as '_') was not found in 'react-dnd'  ## Mini Showcase Repository(REQUIRED) > Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) then upload to your GitHub. [最小重现](https://github.com/PineSongCN/demo)...
修改前,联想能找到对象,但是看不到类型提示。  修改后 
##### Checklist - [x] `npm test` passes - [x] commit message follows commit guidelines ##### Description of change - close https://github.com/umijs/umi/issues/8084 When project cwd path contains escaped characters, `umi dev...
## What happens? 我计划在app.tsx中 export function render 并在该函数中获取服务器的路由列表,获取到路由列表后执行 patchRoutes 进行动态路由配置。 经过实践,patchRoutes 函数中得到的由 render 函数赋值的 路由列表 始终为 null / undefined。 经过测试发现 patchRoutes 的执行 早于 render,导致无法在 render 获取路由数据后在 patchRoutes 中进行 merge ...
## What happens? In "@umijs/max": "^4.0.24", use `exportStatic` in config. ``` > max build fatal - AssertionError [ERR_ASSERTION]: Invalid config keys: exportStatic ``` ## Mini Showcase Repository(REQUIRED) https://github.com/umijs/umi/ ## How...
## What happens? 在 umijs v4 设置路由 base后,再通过 **history.push** 或 **history.replace** 方法进行路由跳转时,总会在路由下增加 base 目录。 例如 base 设置为 `app` ,默认页面 会正确进入 `http://localhost:8000/app/` ,但是通过 `history.push('/docs')` 时路由会变成 `http://localhost:8000/app/app/docs` 这个问题好像在前几个版本上 Link 上也存在,升级最新版本后 Link 的路由跳转没有问题,但是...
## 问题描述 在二级路由中配置上wrappers属性后,菜单无法渲染该路由    ## 复现代码 https://github.com/qq79952008/umi-wrapper-test
## What happens? 在 mpa 模式下下开启 runtimePublicPath, 访问页面404  ## Mini Showcase Repository(REQUIRED) https://github.com/dingff/umi4-demo ## How To Reproduce **Steps to reproduce the behavior:** 1. pnpm start **Expected behavior** 1. 期望...