next.js
6e6503f5 - perf: change the chunks configuration for server code (#57773)

Commit
2 years ago
perf: change the chunks configuration for server code (#57773) Stumbled upon this while investigating. The previous configuration did not make a lot of sense. On Node, fs reads can be expensive so it's best to avoid them as much as possible. The current configuration would create chunks eagerly for nothing, leading to sub optimal perf. The only reason we want chunk on the server is to avoid reloading common parts between entrypoints, so I'm changing the config to reflect that.
Author
Parents
Loading