Hacker News new | past | comments | ask | show | jobs | submit login

Can this yield smaller bundles?



I've been seeing incredibly compressible output from Typescript, if that helps any. If what you mean by 'bundle' are these 'webpack' things that include css and images, and all that. Smaller bundle to me would be not to use one at all.

It doesn't seem like webpack's chief concern is file size or simplicity. So if yours is, just don't use it.


What has this to do with TypeScript?


Can babili or babel parse TS?


Babel can parse Flow, which is similar to Typescript. However, Babel doesn't have any built-in support for inferring or analyzing flow types. However, some of this type information might be useful in building a more advanced closure-like minifier.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: