Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Vite Vite Dependency Pre-Bundling

Explains how Vite uses esbuild to pre-bundle dependencies to improve server start time and handle CommonJS/UMD modules.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Vite Vite Dependency Pre-Bundling

Explains how Vite uses esbuild to pre-bundle dependencies to improve server start time and handle CommonJS/UMD modules.

When To Use

Use when optimizing dev server startup performance or troubleshooting issues related to CommonJS dependency loading in a Vite project.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/vite-dependency-pre-bundling-workflow-guide.mdA guide explaining how Vite automatically discovers and pre-bundles project dependencies to optimize local development performance.Questions about a guide explaining how Vite automatically discovers and pre-bundles project dependencies to optimize local developmen...
examples/vite-dependency-pre-bundling-guide.textA text-based demonstration of how Vite handles dependency pre-bundling behavior.Exact payloads, commands, or snippets shown in A text-based demonstration of how Vite handles dependency pre-bundling behavior.
examples/vite-dependency-pre-bundling-optimize-deps-include-config.textA vite configuration object demonstrating the use of the optimizeDeps.include option to manually include specific dependencies for pre-bundling.Exact payloads, commands, or snippets shown in A vite configuration object demonstrating the use of the optimizeDeps.include option to manually include specific dep...

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /guide/dep-pre-bundling.md for this page in Markdown format
  • Main sections: The Why ​, Automatic Dependency Discovery ​, Monorepos and Linked Dependencies ​, Customizing the Behavior ​, Caching ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://vite.dev/guide/dep-pre-bundling