Improve Vite chunk splitting and update documentation metadata#56
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
koala73
merged commit Feb 13, 2026
edf808e
into
codex/add-tauri-v2-integration-and-configuration
4 checks passed
koala73
deleted the
codex/review-project-documentation-for-optimization
branch
February 15, 2026 08:04
facusturla
pushed a commit
to facusturla/worldmonitor
that referenced
this pull request
Feb 27, 2026
…73#56) ### Motivation - Reduce main bundle pressure by splitting large third-party libraries into logical chunks to improve load/ caching behavior during production builds. - Keep documentation accurate and ensure assets referenced from `docs/` resolve correctly. ### Description - Replaced static `manualChunks` object in `vite.config.ts` with a function-based splitter that creates `ml` for ML deps (`@xenova/transformers`, `onnxruntime-web`), `map` for map/visualization deps (`@deck.gl`, `maplibre-gl`, `h3-js`), and preserves dedicated `d3` and `topojson` chunks. - Updated `docs/DOCUMENTATION.md` to bump the version badge to `2.1.4` and fixed the dashboard image path to `../new-world-monitor.png` so it loads when viewing files from the `docs/` folder. - Changes applied to `vite.config.ts` and `docs/DOCUMENTATION.md` and committed to the current branch. ### Testing - Ran `npm run typecheck` and it completed successfully. - Ran `npm run build` and the production build succeeded; rollup emitted warnings about `eval` in a dependency and some chunks >500 kB but build artifacts were produced. - Ran `npm run test:e2e:full` which failed in this environment because Playwright browser binaries are not installed (error: `Executable doesn't exist ... chromium_headless_shell`). ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_698f0083f99083338bf9ea2ebbefd191)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
docs/resolve correctly.Description
manualChunksobject invite.config.tswith a function-based splitter that createsmlfor ML deps (@xenova/transformers,onnxruntime-web),mapfor map/visualization deps (@deck.gl,maplibre-gl,h3-js), and preserves dedicatedd3andtopojsonchunks.docs/DOCUMENTATION.mdto bump the version badge to2.1.4and fixed the dashboard image path to../new-world-monitor.pngso it loads when viewing files from thedocs/folder.vite.config.tsanddocs/DOCUMENTATION.mdand committed to the current branch.Testing
npm run typecheckand it completed successfully.npm run buildand the production build succeeded; rollup emitted warnings aboutevalin a dependency and some chunks >500 kB but build artifacts were produced.npm run test:e2e:fullwhich failed in this environment because Playwright browser binaries are not installed (error:Executable doesn't exist ... chromium_headless_shell).Codex Task