Huge diffs whenever transpiled files change #83
Labels
ast
Anything related to the internal representation of the AST.
improvement
Adding a new feature, improving an existing feature, etc.
macro expansion
Anything related to Axel macro expansion.
testing
Anything related to the Axel test suite.
Currently, changing a transpiled file (e.g. when updating a golden test) causes diffs to be unreadable—for sourcemapping purposes, we have to insert (long and unreadable) file hashes and whatnot all throughout. This makes it more difficult to verify that a change to the transpiler actually has the effect that we intend, since manually comparing transpiled output is non-trivial.
Is there a way to fix this? Could we maybe change e.g.
to something like
so that the diffs will be localized to specific points?
Or, should we write a tool to "cleanup" a transpiled Axel file (e.g. remove sourcemap information) to aid with manual inspection? This latter option might even be generally useful for end users as well.
The text was updated successfully, but these errors were encountered: