Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: manually chunk console assets (#3691)
Fix the build warning > (!) Some chunks are larger than 500 kB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. BEFORE: ```sh > tsc && vite build vite v6.0.3 building for production... ✓ 4989 modules transformed. dist/index.html 0.66 kB │ gzip: 0.42 kB dist/assets/favicon-jjzVXmZJ.ico 15.41 kB dist/assets/index-YNQQSvAV.css 53.74 kB │ gzip: 9.32 kB dist/assets/index-CUF64-92.js 2,292.08 kB │ gzip: 718.16 kB (!) Some chunks are larger than 500 kB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. ✓ built in 4.46s ``` AFTER: ```sh > tsc && vite build vite v6.0.3 building for production... ✓ 4989 modules transformed. dist/index.html 1.61 kB │ gzip: 0.60 kB dist/assets/favicon-jjzVXmZJ.ico 15.41 kB dist/assets/index-YNQQSvAV.css 53.74 kB │ gzip: 9.32 kB dist/assets/vendor-fuse-CU2r43ac.js 15.78 kB │ gzip: 5.41 kB dist/assets/vendor-highlightjs-C-pAAiiO.js 20.80 kB │ gzip: 8.36 kB dist/assets/vendor-json-schema-library-Dn37TOo0.js 94.96 kB │ gzip: 27.33 kB dist/assets/vendor-yaml-DPZo3Gqr.js 105.03 kB │ gzip: 32.43 kB dist/assets/vendor-protos-C_tG9BVl.js 120.39 kB │ gzip: 22.10 kB dist/assets/vendor-fcose-CGf29ClP.js 124.33 kB │ gzip: 34.47 kB dist/assets/vendor-ui-1mIdG35Z.js 179.39 kB │ gzip: 57.26 kB dist/assets/vendor-react-DSWsB37T.js 217.84 kB │ gzip: 71.72 kB dist/assets/vendor-json-schema-faker-DIbJIIw-.js 272.80 kB │ gzip: 88.83 kB dist/assets/vendor-codemirror-ledrZVpE.js 370.30 kB │ gzip: 120.67 kB dist/assets/index-BGXxIlqa.js 376.45 kB │ gzip: 125.19 kB dist/assets/vendor-graph-D78d43xQ.js 379.52 kB │ gzip: 122.07 kB ✓ built in 4.60s ```
- Loading branch information