Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(agnostification): common/helper.ts
The `readProtocolStream` method uses `fs` only if you want to write to a file. So we gate at the start of the function and ensure that if we got given a path we are not in a Node environment. We then use `import('fs')` to lazily load fs. We have multiple calls but they will be cached so I don't believe that it's going to be a perf hit.
- Loading branch information