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