3 ms·
Lots more work to do here, but we're pretty happy with how the core looks! For those worried about size (which has absolutely been a fair concern over the alpha
by robwormald 10y ago
Lots more work to do here, but we're pretty happy with how the core looks! For those worried about size (which has absolutely been a fair concern over the alpha/beta process) - here's a "hello world" built with Rollup and our offline template precompilation. Clocks in at 200kb min/47k gzipped, with a bit more room from optimization over the next couple of weeks... https://ng2-compiler-test2.firebaseapp.com/ https://ng2-compiler-test2.firebaseapp.com/
- viraptor 10y agoThat seems a lot for: <html> <body> Hello world<br> <blink>hello child</blink> (yes, I know it's not the same under the covers - take it as a comment on the ecosystem, not on the implementation (although it can be a comment on dead code detection too))
- glass-animal 10y ago200k un-minified is huge!
- jffry 10y agoFYI they said at today's ng-conf sessions that with the recent release candidate, they have cut that from 200K to 40K and that there's still more room to shrink.
- jwarren 10y agoI see a lot of complaints about toy app size/complexity. There's definitely a judgement call to makes about app complexity when someone starts a project with a framework. I inevitably find that development in the middle/end of the project is substantially easier when using a good setup like React/Redux/etc or Angular, and changes are easier to make, whereas vanilla development is (relatively) substantially easier at the beginning of a project. Yeah, Hello World might be expensive in size, but when you've got a substantially complex and fast app for not much more size, you start to feel the real benefits.
- glass-animal 10y agoBut what is Angular doing with that 200k (which is minified)? It doesn't seem like I should need to pull in the whole of Angular to make a component with a template. Granted, React is pretty big too, but other frameworks, like Riot.js, have shown that they can be much smaller. Then there's Polymer which gets smaller as web components roll out. In the competition again native apps, web apps have to load really, really fast. Their ability to run without installation is an advantage that needs to be maximized, an on potentially slow and high-latency mobile networks.
- cetra3 10y agoHow are we tracking with: https://github.com/rollup/rollup/issues/280 https://github.com/rollup/rollup/issues/280 Do you rollup angular or is it still an external dependency?
- robwormald 10y agoThe new npm packages have an ES6 directory included and use the jsnext:main pointer in their package.json files to allow rollup-plugin-node-resolve to pick up the ES6 distro as normal. I'll drop a note in that issue later this week after I've gotten some sleep!
- cetra3 10y agoAll good! Love your work :)