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

Debugging quality of life imporvements: --preserve-crlf and --export-mapping [FILE] #322

Open
LeStahL opened this issue Feb 27, 2024 · 2 comments

Comments

@LeStahL
Copy link

LeStahL commented Feb 27, 2024

I noticed recently that it would be very nice to have certain debugging information available, like

  • A --preserve-crlf flag to preserve line numbers (because I find myself using clang-format to find lines in the minified source manually a lot).

  • The mapping of ids, in a format like

main="a"
main.fragColor="a.b"
trace="c"
trace.dist="c.d"
[email protected]="[email protected]"
unneccessary=""
 ...

maybe exposed over a command line parameter --export-mapping file.txt? This would simplify identifying the origin of expressions that break in the minified source.

@eldritchconundrum
Copy link
Collaborator

For the first point, wouldn't it be sufficient to use the existing --format indented flag?

@LeStahL
Copy link
Author

LeStahL commented Feb 27, 2024

For the first point, wouldn't it be sufficient to use the existing --format indented flag?

Yes, that's exactly what I was looking for, thank you for pointing it out! (And sorry for not RTFM enough) :)

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

2 participants