mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
78301695ea
The workflow-node-module-error plugin records violations in onResolve, which runs before esbuild's tree-shaker. A shared module with both a workflow-safe export and a step-only export that imports node:* would be flagged even when the workflow never reached the step-only export. Mark node:/bun: imports as sideEffects: false so esbuild can tree-shake them when unused in surviving code, enable metafile, and filter recorded violations in onEnd against outputs[].imports so only builtins that actually survive in the emitted bundle are reported. Fixes #1817
131 B
131 B
@workflow/builders
| @workflow/builders |
|---|
| patch |
Fix false-positive workflow-node-module-error for step-only Node.js usage in shared modules