Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output one entry per replacement #10

Open
43081j opened this issue Aug 9, 2024 · 0 comments
Open

Output one entry per replacement #10

43081j opened this issue Aug 9, 2024 · 0 comments

Comments

@43081j
Copy link
Contributor

43081j commented Aug 9, 2024

We currently output a log entry per file, per replacement.

For example, if you have foo.ts and bar.ts which both contain a bad module, you will see two logs.

Ideally, we make this more concise like so:

Module `blah` could be replaced by the following:

{some url}

In files:
- package.json
- foo.ts
- bar.ts

We should be careful when building this logic, though, as we need to avoid keeping a buffer of all files in memory.

We can't simply loop through all files/replacements and build a result set up, as that will take too much memory in large projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant