Files
vercel__workflow/.changeset/bundle-aliased-project-local-helpers.md
Nathan Rajlich e0ec429bb3 fix(builders): bundle aliased project-local helpers instead of externalizing (#1885)
Externalizing aliased helpers was unsafe: their source on disk could
contain further alias imports that Node's ESM loader doesn't know about,
causing 'Package subpath ... is not defined by "exports"' /
ERR_MODULE_NOT_FOUND at runtime.

Now bundle inline so all alias resolution happens at build time.
2026-05-01 02:20:31 -07:00

622 B

@workflow/builders
@workflow/builders
patch

Fix Package subpath ... is not defined by "exports" runtime errors when step files reach project-local helpers via tsconfig paths / esbuild aliases / self-referencing package names.

Such helpers are now bundled inline rather than externalized as relative paths. Externalization was unsafe because the helper's source on disk could contain further alias imports, and Node's ESM loader at runtime doesn't know about build-time path mappings — leading to errors like Package subpath './lib/foo' is not defined by "exports" (or ERR_MODULE_NOT_FOUND) once the helper was loaded.