Y
Hacker News
new
|
ask
|
show
|
jobs
by
Pepe1vo
658 days ago
Is there an advantage to doing this versus using something like ncc to just package everything into a single js file with zero dependencies?
2 comments
diggan
658 days ago
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.
link
hardwaresofton
658 days ago
Surprised that vercel/ncc is still supported but vercel/pkg is not... Wonder why that is.
link