dynamicImport和dynamicImportSyntax是互斥的吗? #7844
qingfengmy
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
dynamicImport:是否启用按需加载,即是否把构建产物进行拆分,在需要的时候下载额外的 JS 再执行。
dynamicImportSyntax:如果你不需要路由按需加载,只需要支持 import() 语法的 code splitting,可使用此配置
看上面的说明,两者是互斥的啊,如果既想支持路由的动态拆分,又想要React.lazy的import异步js拆分,要怎么配置?
Beta Was this translation helpful? Give feedback.
All reactions