So hours later I'm no closer to figuring out why ts-loader is hanging with webpack 4 alpha 4 post `after-compile`. 😭
But I found a typo! Small victories 😄
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports