The easiest way to do this might be to plug into another tool's alias-unrolling functionality (e.g. Flow's [name_mapper](https://flow.org/en/docs/config/options/#toc-module-name-mapper-regex-string)).