Try split it out as another chunk

This commit is contained in:
Lim Chee Aun 2024-03-05 00:51:53 +08:00
parent 42dac0720f
commit 29e9e15d3f

View file

@ -116,6 +116,9 @@ export default defineConfig({
compose: resolve(__dirname, 'compose/index.html'),
},
output: {
manualChunks: {
'intl-segmenter-polyfill': ['@formatjs/intl-segmenter/polyfill'],
},
chunkFileNames: (chunkInfo) => {
const { facadeModuleId } = chunkInfo;
if (facadeModuleId && facadeModuleId.includes('icon')) {