Intermediate
Bundle Patterns: Multi-File Plugins
Bundle Patterns: Multi-File Plugins — Learn how to build intermediate dsh plugins.
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:
{
"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.