
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
vite-chunk-tools
Advanced tools
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 94 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.