DSH Quality
Intermediate
3 min read

Bundle Patterns: Multi-File Plugins

Bundle Patterns: Multi-File Plugins — Learn how to build intermediate dsh plugins.

Last updated: 2026-08-25

Multi-file plugins

As your plugin grows, a single index.ts becomes unwieldy. Split into multiple files and let dsh.bundle.patch point to the entry:

json
{
  "dsh": { "bundle": { "patch": ["dist/index.js"] } }
}

Build your project with TypeScript, output to dist/, and ship the compiled JS. Source maps are optional but helpful for debugging.