umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

[Bug] ICMS平台导出的MD格式文件,用dumi构建之后,拆包过多,导致def平台检测失败(打包产物超出3000个),有没有什么配置可以不做按照页面拆分 #2212

Closed fanyongchao01 closed 1 month ago

fanyongchao01 commented 1 month ago

What happens?

ICMS平台导出的MD格式文件,用dumi构建之后,拆包过多,导致def平台检测失败(打包产物超出3000个),有没有什么配置可以不做按照页面拆分

Mini Showcase Repository(REQUIRED)

image

Jinbao1001 commented 1 month ago

Choose a method that suits you best:

  1. dumi config: routeLoader -> { moduleType: 'cjs' }

  2. or using webpack: chainWebpack(memo) { memo.module.parser.set('javascript', { dynamicImportMode: 'eager', }) return memo; }

  3. or using mako: mako.config.json -> dynamicImportToRequire: true