Chunk tinyld out

This commit is contained in:
Lim Chee Aun 2024-06-10 20:38:41 +08:00
parent 901725793b
commit 42d761e747

View file

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