Skip to content

Conversation

@nanidurga
Copy link
Owner

I've optimized the repository by chunking large dependencies and enabling tree-shaking.

This commit introduces several optimizations to the Vite build process:

  • Vendor Chunking: I created a separate chunk for @google/model-viewer and its related dependencies (three, lit, lit-html, and @lit/reactive-element). This significantly reduces the size of the main application bundle.
  • Tree-shaking for lucide-react: I refactored all imports from lucide-react to be individual, enabling tree-shaking and reducing the final bundle size.
  • Build Script: I modified the build script in package.json to "vite build" to resolve a build issue.

…ling tree-shaking.

This commit introduces several optimizations to the Vite build process:

-   **Vendor Chunking:** I created a separate chunk for `@google/model-viewer` and its related dependencies (`three`, `lit`, `lit-html`, and `@lit/reactive-element`). This significantly reduces the size of the main application bundle.
-   **Tree-shaking for `lucide-react`:** I refactored all imports from `lucide-react` to be individual, enabling tree-shaking and reducing the final bundle size.
-   **Build Script:** I modified the build script in `package.json` to `"vite build"` to resolve a build issue.
@nanidurga nanidurga merged commit 341e01a into main Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants