Bug: Flow type-only exports in script mode cause parse error or emit empty export { }
Bug: Flow type-only exports in script mode cause parse error or emit empty export { }: a task in LegoFlow-SWE (Harbor dataset). When transforming a Flow file with isModule: false or isModule: "unknown" that contains only type exports (no runtime ESM exports), the current behavior is incorrect:
The task
When transforming a Flow file with `isModule: false` or `isModule: "unknown"` that contains *only* type exports (no runtime ESM exports), the current behavior is incorrect:
Part of Lego-X/LegoFlow-SWE.