this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Disable manualChunks

+19 -17
+19 -17
vite.config.js
··· 176 176 compose: resolve(__dirname, 'compose/index.html'), 177 177 }, 178 178 output: { 179 - manualChunks: (id, { getModuleInfo }) => { 180 - // if (id.includes('@formatjs/intl-segmenter/polyfill')) return 'intl-segmenter-polyfill'; 181 - if (/tiny.*light/.test(id)) return 'tinyld-light'; 179 + // NOTE: Comment this for now. This messes up async imports. 180 + // Without SplitVendorChunkPlugin, pushing everything to vendor is not "smart" enough 181 + // manualChunks: (id, { getModuleInfo }) => { 182 + // // if (id.includes('@formatjs/intl-segmenter/polyfill')) return 'intl-segmenter-polyfill'; 183 + // if (/tiny.*light/.test(id)) return 'tinyld-light'; 182 184 183 - // Implement logic similar to splitVendorChunkPlugin 184 - if (id.includes('node_modules')) { 185 - // Check if this module is dynamically imported 186 - const moduleInfo = getModuleInfo(id); 187 - if (moduleInfo) { 188 - // If it's imported dynamically, don't put in vendor 189 - const isDynamicOnly = 190 - moduleInfo.importers.length === 0 && 191 - moduleInfo.dynamicImporters.length > 0; 192 - if (isDynamicOnly) return null; 193 - } 194 - return 'vendor'; 195 - } 196 - }, 185 + // // Implement logic similar to splitVendorChunkPlugin 186 + // if (id.includes('node_modules')) { 187 + // // Check if this module is dynamically imported 188 + // const moduleInfo = getModuleInfo(id); 189 + // if (moduleInfo) { 190 + // // If it's imported dynamically, don't put in vendor 191 + // const isDynamicOnly = 192 + // moduleInfo.importers.length === 0 && 193 + // moduleInfo.dynamicImporters.length > 0; 194 + // if (isDynamicOnly) return null; 195 + // } 196 + // return 'vendor'; 197 + // } 198 + // }, 197 199 chunkFileNames: (chunkInfo) => { 198 200 const { facadeModuleId } = chunkInfo; 199 201 if (facadeModuleId && facadeModuleId.includes('icon')) {