API side code compilation

Hi,
as far as I could see there is no webpack bundler working on api side, but babel doing its work. Is this correct?
I am running into an issue, that I try to import from a shared workspace to api side. But the compiled files only include the resulting code with require('myPackage/src/path/to/file). I would prefer to compile this code with esbuild-loader or ts-loader. Since this guarantees the existence of the code in compiled files. Is there any way I could do this?