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.
241 B
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.