umijs 4打包时怎么选用 dynamicImport: {}, #8257
aaron-weldoor
started this conversation in
General
Replies: 2 comments
-
umi4 默认按页拆包,近似等同于 dynamicImport ,使用 |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's actually an undocumented feature. In umi3 it was part of the config and you would set it in {
"dynamicImport": {
"loading": "@/components/Loading"
}
} I think you need to update https://umijs.org/docs/guides/directory-structure page with details about it as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
umijs3 在 app.tx 直接用 dynamicImport: {},
请问 umijs4怎样实现此功能?
Beta Was this translation helpful? Give feedback.
All reactions