I am doing a code reorganization and am rewriting some of my TypeScript modules that will likely be used by several microservices as packages.
Unfortunately, it seems that using absolute imports enabled by baseUrl
does not play nicely with this package conversion. For example, I used to import { Thing } from "Place/That/I/Know";
where "Place/That/I/Know/"
was really "src/Place/That/I/Know/"
Now, this results in a Module not found error
.
I would like to use Rollup.js to convert absolute imports, "Place/That/I/Know/"
, to relative imports "./Place/That/I/Know/"
. I've found this answer. But, it seems inconclusive. Any suggestions?