This is a community developed Vite plugin from @cptCrunch_ that enables seamless integration between SvelteKit and Trigger.dev by allowing you to use your SvelteKit functions directly in your Trigger.dev projects.

Features

  • Use SvelteKit functions directly in Trigger.dev tasks
  • Automatic function discovery and export
  • TypeScript support with type preservation
  • Preserves JSDoc documentation
  • Hot Module Reloading support
  • Configurable directory scanning

Prerequisites

Setup

View setup guide on npm

npm i vite-plugin-triggerkit