Better HN
topnewbestaskshowjobs
Log inSign up

aredherring

3 karma · joined Aug 2, 2016 (10y ago) · 3 submissions

Submissions

comment 10y ago · link · parent

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

comment 10y ago · link · parent

Transpiling usually concerns syntax. Babel won't transpile .endsWith to a polyfill for you, hence the existence of that package

comment 10y ago · link · parent

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.