Next.js: Reducing Bundle Size When Using Third-Party Libraries

An example of how to improve bundle size with Next.js

Robert S (codeBelt)
Better Programming
Published in
5 min readDec 10, 2020

--

Photo by Deon Black on Unsplash

I work at a startup called Parallax, where we’re building a resource planning and project accounting app with Next.js. I recently noticed some of the pages would have a large “First Load JS” after running the next build command in the terminal.

--

--