fleet-trimming-bundle

Official

Shrink built bundles by stubbing unused modules.

AuthorSocketDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Iteratively stub heavyweight modules that the bundler statically pulls in but the runtime never reaches, shrinking the final bundle size after a build.

Core Features & Use Cases

  • Baseline dist measurement and heaviest-file analysis to identify dead-weight imports.
  • Phase-driven stub loop using rolldown and the fleet lib-stub to replace unused modules without breaking runtime.
  • Clear guidance on when to apply (post-migration, pre-release, or during bundle-size optimizations).

Quick Start

Run the trimming workflow on a repo with a built bundle to begin identifying and stubbing unused modules.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fleet-trimming-bundle
Download link: https://github.com/SocketDev/socket-mcp/archive/main.zip#fleet-trimming-bundle

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.