Next.js Discord

Discord Forum

Next.js send all dependencies in the first .js request (DEV MODE)?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Avatar
Transvaal lionOP
Why next.js doesn't tree-shake the bundle before? Sending all dependencies at first request seams a really bad approx (I think it sends, the bundle in dev has 50MB while in prod 1-2MB). The browser take some time (seconds) to parse all that javascript after transfering...
Image

0 Replies