Shashank Upadhyay

Shashank Upadhyay

Shashank Upadhyay is a software engineer working on frontend infrastructure for a large Next.js micro-frontend application built with Module Federation. After cutting its production build from 57 to 26 minutes with CPU profiling, he sent the fixes upstream to Module Federation and webpack and wrote up the method on his blog.
Cutting a 57-Minute Next.js Build to 26 with a CPU Profiler
React Summit Asia 2027React Summit Asia 2027
Upcoming
Cutting a 57-Minute Next.js Build to 26 with a CPU Profiler
Our production Next.js micro-frontend app took 57 minutes to build. Using only Node's built-in CPU profiler, I found two bottlenecks, one in Module Federation and one inside webpack itself, and brought the build down to 26 minutes. You'll leave with a repeatable method for turning "the build is slow" into a hypothesis you can test.