Cool, that looks like it could work for client-side code that gets run through webpack, but what about for a node-friendly library?
Here's an example:
// tsconfig.json
...
"paths": {
"#src/*": ["src/*"],
}
...
// package.json
...
"requireRewrite": {
"map": [
[
"#src/",
"dist/src/"
],
]
}
...
// src/path1/x.ts
import { X } from '#src/path2/y.ts`