umi
umi copied to clipboard
fix: dva export type
修改前,联想能找到对象,但是看不到类型提示。
修改后
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
umi | ✅ Ready (Inspect) | Visit Preview | Jun 29, 2022 at 3:05AM (UTC) |
Codecov Report
Merging #8296 (2fc5ebd) into master (a3e7119) will not change coverage. The diff coverage is
0.00%
.
@@ Coverage Diff @@
## master #8296 +/- ##
=======================================
Coverage 33.97% 33.97%
=======================================
Files 358 358
Lines 9288 9288
Branches 2136 2136
=======================================
Hits 3156 3156
Misses 5787 5787
Partials 345 345
Impacted Files | Coverage Δ | |
---|---|---|
packages/plugins/src/dva.ts | 39.06% <0.00%> (ø) |
|
packages/babel-preset-umi/src/index.ts | 100.00% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update a3e7119...2fc5ebd. Read the comment docs.
同类问题应该还有,我想的解法是把 alias 加到 .umi/tsconfig.json 里。
因为 dva 这个包是不存在的,其他的导出,倒是没注意到还有同类问题
这个问题什么时候修复好呢
https://github.com/umijs/umi/blob/43d373f35114378ec63cd3c66ca85a1997cd3f03/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts#L583