Skip to content

Investigate WebUI bundle chunk size #100

Description

@schalkneethling

Summary

The WebUI build currently succeeds but Vite reports that the main chunk is larger than 500 kB after minification.

Context

The app bundles CodeMirror and css-tree, so the warning may be expected. Still, it is worth checking whether the generated/validation paths can be split more cleanly.

Things to explore

  • Lazy-load generation or validation code paths only when the user switches modes.
  • Dynamic-import CodeMirror language packages or editor setup if practical.
  • Confirm whether css-tree is duplicated or bundled only once.
  • Decide whether to keep the warning, increase the chunk size threshold, or code split meaningfully.

Acceptance criteria

Document whether there is a practical bundle-size improvement and, if so, implement it without making the WebUI slower or more fragile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3Low priority: polish, speculative, or weak immediate impact

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions