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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/vite-dependency-pre-bundling-workflow-guide.md | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://vite.dev/guide/dep-pre-bundling