News for hackers. Stuff that matters.
Re:Yarn's Future – v2 and beyond by jchw on Thursday January 24, 2019 @03:27PM (#18992574)
Webpack indeed can run TS in a loop, using hot reloading. If you want to do this yourself it's fairly trivial, the TS compiler API is at least documented somewhat:

https://github.com/Microsoft/TypeScript/wiki/Using-the-Compi...

And of course you can read the source code for Webpack's typescript support.

Sidenote: although it's less popular, I highly recommend looking into Parcel Bundler, it's much nicer to use and has no configuration required. You can, for example, point it at an HTML file with a script tag pointing to a TypeScript entrypoint that includes NPM modules and it will handle compiling, bundling, minifying transparently. And it's relatively quick.

There are no comments on this comment yet.