标签: webpack
要在webpack中对导入进行分块,我们会执行类似这样的操作
const Component = () => import(/* webpackChunkName: "mycomp" */ "node_modules/myComponent");
如果myComponent正在导出多个组件,如
export {myComponent, Component1, Component2}
如何通过webpackChunkName导入这样的多个组件?