Files
vercel__workflow/.changeset/inline-step-registration.md
Nathan Rajlich 0a86de3afd Inline all SWC plugin step registrations, remove workflow/internal/private (#1632)
The SWC compiler plugin no longer generates import statements. All step
function registrations and closure variable access are now self-contained
inline IIFEs with zero module dependencies
2026-04-08 16:58:17 -07:00

515 B

@workflow/swc-plugin
@workflow/swc-plugin
major

BREAKING CHANGE: Inline all step registrations as self-contained IIFEs instead of generating import { registerStepFunction } from "workflow/internal/private". Closure variable access is also inlined. This eliminates the dependency on the workflow package being available in node_modules, enabling 3rd-party packages to define step functions. Registrations are now placed immediately after each function definition instead of being batched at the bottom of the file.