How we optimized package imports in Next.js
Next.js releases optimized package import handling to improve local dev performance and production cold starts for large icon, component, and module-re-exporting libraries.
In the , we've made improvements to optimize package imports, improving both local dev performance and production cold starts, when using large icon or component libraries or other dependencies that re-export hundreds or thousands of modules.latest version of Next.js This post explains why this change was needed, how we've iterated towards our current solution, and what performance improvements we've seen. Read more