Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: