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

Is there an advantage to doing this versus using something like ncc to just package everything into a single js file with zero dependencies?



Let's say you're initializing a huge array on boot that takes 100ms. Packaging everything into a single .js file won't change that. Taking a snapshot of the state after boot and using that for subsequent boots will allow you to skip that.


Surprised that vercel/ncc is still supported but vercel/pkg is not... Wonder why that is.




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

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

Search: