Files
vercel__workflow/.changeset/builders-discovery-fixes.md
Nathan Rajlich dc0c0dce7f fix(builders): improve step bundle discovery and externalization for SDK serde classes (#1669)
* fix(builders): improve step bundle discovery and externalization for SDK serde classes

- Broaden importParents tracking to all imports (not just file extensions)
  so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
  Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
  paths in CJS shims

* fix(builders): address review feedback

- Preserve inputFiles array reference for discoverEntries() WeakMap
  caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
  specifier imports (entry -> bare-pkg -> serde file)
2026-04-09 19:37:38 +00:00

424 B

@workflow/builders
@workflow/builders
patch

Fix step bundle discovery and externalization for SDK serde classes

  • Broaden importParents tracking to all imports (not just file extensions) so parentHasChild() works through bare specifier imports
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered
  • Bundle node_modules deps instead of externalizing with broken relative paths