Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Nx 中有一种方法可以在 React 应用程序中拆分组件级别的块。如果是,请分享是否有人这样做。
目前,我看到的唯一选项是 commonChunk 和 namedChunks,但它们没有达到目的。添加动态导入不会生成块。我尝试使用 React.lazy 和 React Loadable 但还没有成功。我正在使用 nx web 构建执行程序。