Skip to content

feat(build): Remove manual chunks from Vite configs#9839

Draft
AntonioVentilii wants to merge 3 commits intomainfrom
feat-build/Remove-manual-chunks-from-Vite-configs
Draft

feat(build): Remove manual chunks from Vite configs#9839
AntonioVentilii wants to merge 3 commits intomainfrom
feat-build/Remove-manual-chunks-from-Vite-configs

Conversation

@AntonioVentilii
Copy link
Collaborator

Motivation

Removed the custom manualChunks configuration from the Vite build. Vite’s default Rollup strategy now handles chunk splitting automatically, producing more efficient bundles and better code-splitting without forcing all unmatched modules into a single chunk.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review October 21, 2025 17:27
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner October 21, 2025 17:27
Copilot AI review requested due to automatic review settings October 21, 2025 17:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the custom manualChunks configuration from the Vite build setup, allowing Vite's default Rollup strategy to handle chunk splitting automatically. This simplifies the build configuration and relies on Vite's built-in optimization for efficient bundling.

  • Removed custom chunk splitting logic that categorized dependencies into 'vendor', 'lazy', and 'index' chunks
  • Removed unused dirname import from 'node:path'

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would first just add an exception to chunks the translatations, as it is the matter that triggered this, WDYT?

@AntonioVentilii AntonioVentilii marked this pull request as draft October 22, 2025 10:05
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