3 ms·
I have an idea for the next version of TypeScript. Instead of compiling directly to JavaScript, it should compile to CoffeeScript first and then to JavaScript
by jondubois 9y ago
I have an idea for the next version of TypeScript.
Instead of compiling directly to JavaScript, it should compile to CoffeeScript first and then to JavaScript - That's a great feature I'd love to see.
Of course, this feature wouldn't be possible without also adding support for meta-source-maps (aka source-map-maps).
That way we can experience the pleasure of debugging in 3 different languages at the same time.
- AgentME 9y agoI know it's a joke, but the thing about sourcemaps is already do-able. If you have a sourcemap describing A->B, and a separate sourcemap describing B->C, then there already tools for composing the sourcemaps to create a sourcemap for A->C. (This is similar to a thing that Browserify and Webpack have to do when you're using a transform like Babel on each of the individual input files.)