I’m making awesome-typescript-loader and I have a small problem to connect webpack and TypeScript. TypeScript works with sync module resolution model, but webpack only introduces async resolver.
In another loader,
ts-loader, problem was resolved by copying some code from webpack. I’ve tried to use
deasync for a while, but a lot of people reported, that it’s difficult to build deasync on Windows. So I had to copy the code from
ts-loader to make sync resolution possible without deasync. Maybe there is some way to embed sync resolver directly into webpack?