# Webpack & Vite Bundle Size Tree-Shaking Dietician

> Breaks a bundle down by dependency weight, finds the imports that defeat tree-shaking, and returns the diffs - barrel file fixes, dynamic import splits - with the gzip saving for each.

Webpack & Vite Bundle Size Tree-Shaking Dietician is a subscription AI agent skill on Agensi by AllAccessData, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [AllAccessData](https://www.agensi.io/creators/allaccessdata)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/webpack-vite-bundle-size-tree-shaking-dietician
- Tags: frontend-web-apps, code-quality-review, productivity

## About this skill

**Webpack & Vite Bundle Size Tree-Shaking Dietician** Someone imported a date library for one function and it brought every locale with it. That is almost always where the first few hundred kilobytes went.

Built for frontend teams whose bundle has grown past the point where anyone remembers why. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.

What's included:
* **Dependency weight breakdown:** what each package actually contributes after minification and gzip, ranked, so effort goes where the bytes are.
* **Tree-shaking diagnosis:** the specific import patterns defeating dead-code elimination - barrel files re-exporting a whole library, default imports where a named one would shake, CommonJS dependencies that cannot be analysed statically at all.
* **Code splitting recommendations:** dynamic import boundaries drawn where a route or interaction genuinely defers the cost.
* **Exact diffs with measured savings:** each change paired with its gzip delta on your build, not a generic estimate.
* **Continuous tracking:** per-PR bundle size reporting and dead-code alerts to Slack, which is how a bundle stays slim after the one-off cleanup.

_The improvement depends entirely on what your bundle looks like now - a well-pruned build has little left to give, and the report states the measured delta rather than promising a percentage._

_Two things to verify rather than trust. Tree-shaking depends on ESM and on packages declaring their side effects honestly; a dependency with an incorrect `sideEffects: false` will have code stripped that it actually needed, and the failure shows up at runtime in a path your tests may not cover. And code splitting relocates cost rather than deleting it: split too finely and you trade one large download for a waterfall of small ones that is slower on a poor connection. Measure on a throttled network profile, not on your laptop._

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Webpack & Vite Bundle Size Tree-Shaking Dietician skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Webpack & Vite Bundle Size Tree-Shaking Dietician do?

Breaks a bundle down by dependency weight, finds the imports that defeat tree-shaking, and returns the diffs - barrel file fixes, dynamic import splits - with the gzip saving for each.

### Which AI agents support Webpack & Vite Bundle Size Tree-Shaking Dietician?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Webpack & Vite Bundle Size Tree-Shaking Dietician?

Connect your AI agent to Agensi through MCP, then ask it to use Webpack & Vite Bundle Size Tree-Shaking Dietician on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
