News for hackers. Stuff that matters.

aredherring

Re:Ask HN: Is web programming a series of hacks on hacks? on Wednesday September 14, 2016 @05:37AM (#12495262)
I feel for you. You're being exposed to a framework that is a mess in one of the [most hated languages of 2016][0]

[0]: https://stackoverflow.com/research/developer-survey-2016

Re:Ask HN: Is web programming a series of hacks on hacks? on Wednesday September 14, 2016 @05:25AM (#12495202)
Transpiling usually concerns syntax. Babel won't transpile .endsWith to a polyfill for you, hence the existence of that package
Re:Huge no. of files for Angular 2 on Tuesday August 02, 2016 @10:13AM (#12210059)
That's not a production build.

Minify it, run dead code elimination. Exactly as you would with any other language with a compiler.

Also, worth noting that the tutorial being broken isn't symptomatic of JS, that's a problem with Angular (which has a history of sucking, and IMO Angular 2 just takes all of the problems with Angular 1 and adds more baggage to it).

Be aware as well that Angular 2 is a full-fledged Web Framework. Even after all of this compression and such, it is not going to be as lightweight as you'd expect simply due to the nature of what you've installed.

If you want something really lightweight, go with Rivets or React.