配置了babel-plugin-dynamic-import-node后,react.lazy无同时导致不生效,如何处理? #12270
Unanswered
wenlei0617
asked this question in
Q&A
Replies: 1 comment
-
配置这个试下: // .umirc.ts
routeLoader: { moduleType: 'cjs' } 不过这个选项有个 bug (不影响使用),你可以先用。 |
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
-
配置了babel-plugin-dynamic-import-node后,react.lazy无同时导致不生效。场景,不期望使用umi自带的打包方式,期望自行处理,当前使用babel-plugin-dynamic-import-node就无法使用react.lazy的分包了。
Beta Was this translation helpful? Give feedback.
All reactions