
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
vite-react-chunker
Advanced tools
A Vite plugin for advanced chunk splitting and bundle optimization, helping improve caching, load performance, and maintainability in modern web projects.
vite-react-chunker is a Vite plugin 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-react-chunker --save-dev
Using Yarn:
yarn add vite-react-chunker -D
Add the plugin to your vite.config.js or vite.config.ts:
import { defineConfig } from "vite";
import chunk from "vite-react-chunker";
export default defineConfig({
plugins: [
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-react-chunker] 📦 Splitting vendor chunk: react, react-dom
[vite-react-chunker] âś… 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-react-chunker receives a total of 0 weekly downloads. As such, vite-react-chunker popularity was classified as not popular.
We found that vite-react-chunker 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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.