Files
vercel__workflow/.changeset/precompile-workflow-script.md
Nathan Rajlich 1ffc078e8e perf(core): precompile workflow vm.Script at module init
Compile the workflow bundle's `vm.Script` for each known workflow source
filename when `workflowEntrypoint` is constructed (module-init time),
rather than lazily on the first queue delivery's replay. Builders inline
the deduplicated, sorted set of workflow filenames into generated routes
via the new `workflowFilenames` entrypoint option, so the first replay is
a cache hit instead of paying the bundle parse/compile on the critical
path.
2026-06-18 14:07:53 -07:00

241 B

@workflow/core
@workflow/core
minor

Precompile the workflow bundle vm.Script at module-init time via a new optional workflowFilenames option on workflowEntrypoint, so the first queue delivery's replay skips the bundle parse/compile cost.