mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
0a86de3afd
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
515 B
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.