Skip to content

[Perf] Configure Vite manualChunks for vendor libraries #3

@ishaanxgupta

Description

@ishaanxgupta

The Vite config does not define manualChunks, meaning heavy dependencies like Three.js (~150 KB), framer-motion (~50 KB), and recharts are bundled together. This creates a monolithic vendor chunk that invalidates cache on every small application change.

Code Reference
xmem-landing/vite.config.ts

Proposed Fix
Update rollupOptions.output.manualChunks in the Vite config to split large dependencies (three, motion, radix UI) into their own cacheable vendor chunks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions