Hacker News new | ask | show | jobs
by saosebastiao 3446 days ago
Stuff like this is the reason the Unix Philosophy of small "composable" tools doesn't work in this ecosystem. Because if you run your code through three different preprocessor steps, everything breaks and your source maps aren't even close to usable anymore, so you can't debug anymore.

I've been campaigning for more of a monolithic design in the TS ecosystem. Not that the architecture of the TS compiler needs to be monolithic, but rather that TS users should have a blessed and supported stack for everything. We should be able to rely on TS components for linking/packaging, polyfills, optimization, conditional compilation, minification, source map packaging, asset prepackaging and loading, ES6+ standards compliance, etc.

But since advocating for anything rhyming with -olith is heresy in the programming world, I'm not confident we'll get there.

1 comments

This isn't actually caused by piping data through many small tools, it's reproducible with solely webpack 2.

https://gist.github.com/anonymous/ad044363f73b845cccb4e7f225...