Working with canvas context.drawImage() or new Image().Working with background-image or image-set.next/image Improvementsīased on community feedback, we've added a new experimental function unstable_getImgProps() to support advanced use cases without using the component directly, including: View the PR or learn more about optimizePackageImports in our documentation. Libraries like date-fns, lodash, lodash-es, ramda, react-bootstrap,, , and lucide-react are now automatically optimized, only loading the modules you are actually using, while still giving you the convenience of writing import statements with many named exports. In 13.5, we have superseeded this option with optimizePackageImports, which doesn't require you to specify the mapping of imports, but instead will automatically optimize imports for you. Previously, we added support for modularizeImports, enabling you to configure how imports should resolve when using these libraries. We've made an exciting breakthrough 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. With 13.5, next dev -turbo now supports more features. While we continue to iterate and improve our current bundler performance, we're also working on Turbopack (Beta) in parallel to further increase performance. Next.js user Lattice reported between 87-92% faster compilation in their testing. Automatically configuring large icon libraries.Moving unnecessary blocking synchronous calls to be lazy.Better incremental tree traversal during compilation.Optimizing expensive file system operations.Doing less work by caching or minimizing slow operations.We were able to achieve this performance increase through optimizations like: Comparing 13.4 to 13.5, we've seen the following improvements on a new application: Since Next.js 13.4, our focus has been on improving performance and reliability for App Router applications. We're excited to see the continued adoption of the App Router, now growing 80% MoM when looking at the top 10 million origins crawled by the HTTP Archive. Npm i react - eslint - config - Improving startup and Fast Refresh time
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |