Files
vercel__workflow/.changeset/precompile-workflow-script-builders.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

211 B

@workflow/builders, @workflow/next
@workflow/builders @workflow/next
patch patch

Pass the bundle's workflow source filenames to workflowEntrypoint in generated routes so the workflow VM script is precompiled at module-init time.