
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
vite-chunk-tools
Advanced tools
Affected versions:
A Vite plugin for advanced chunk splitting and bundle optimization, helping improve caching, load performance, and maintainability in modern web projects.
vite-chunk-tools is a Vite config that makes it easy to control chunk splitting and bundle optimization. It helps you define custom chunk strategies, improve caching, and boost performance for modern, high-performance web applications.
Using npm:
npm install vite-chunk-tools --save-dev
Using Yarn:
yarn add vite-chunk-tools -D
Add the config to your vite.config.js or vite.config.ts:
import { defineConfig } from "vite";
import chunk from "vite-chunk-tools";
export default defineConfig({
configs: [
chunk({
strategy: "manual",
customSplits: {
vendor: ["react", "react-dom"],
utils: ["lodash", "axios"],
},
}),
],
});
| Option | Type | Default | Description |
|---|---|---|---|
strategy | string | "default" | Chunking strategy: "default", "manual", or "split-vendor" |
customSplits | object | {} | Define manual chunk groups (e.g., vendor, utils, etc.) |
enableDiagnostics | boolean | false | Enables detailed logs about chunking and performance metrics |
[vite-chunk-tools] 📦 Splitting vendor chunk: react, react-dom
[vite-chunk-tools] ✅ Generated 3 optimized chunks
MIT © [cent-fi]
Have ideas or improvements? Contributions are welcome! Feel free to open an issue or submit a PR.
FAQs
A Vite plugin for advanced chunk splitting and bundle optimization, helping improve caching, load performance, and maintainability in modern web projects.
The npm package vite-chunk-tools receives a total of 0 weekly downloads. As such, vite-chunk-tools popularity was classified as not popular.
We found that vite-chunk-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.