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