After 26 canary releases and 3.4 million downloads, we are proud to introduce the production-ready Next.js 7, featuring:
Finally, we are excited to be sharing this news on the all-new Nextjs.org
One of Next.js's primary goals is to provide the best production performance with the best possible developer experience . This release brings about many significant improvements to the build and debug pipelines
Thanks to webpack 4, Babel 7 and many improvements and optimizations on our codebase, Next.js now boots up to 57% faster during development.
Thanks to our new incremental compilation cache, changes you make to the code will now build 40% faster .
These are some example figures we have collected:
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
One of Next.js's primary goals is to provide the best production performance with the best possible developer experience. This release brings about many significant improvements to the build and debug pipelines
General
With webpack 4, a new way of extracting CSS from bundles was introduced, called mini-extract-css-plugin. @zeit/next-css, @zeit/next-less, @zeit/next-sass, and @zeit/next-stylus are now powered by mini-extract-css-plugin. The new version of these Next.js plugins solves 20 existing issues related to CSS imports; As an example, importing CSS in dynamic import()s is now supported: import './my-dynamic-component.css';
export default function MyDynam
General
After 26 canary releases and 3.4 million downloads, we are proud to introduce the production-ready Next.js 7, featuring:
Definition / Understanding
Rendering accurate and help errors is critical to a great development and debugging experience. Until now, we would render the error message and its stack trace. Moving forward, we make use of react-error-overlay to enrich the stack trace with: This is a comparison of the before and after of our errors: As a bonus, react-error-overlay makes it easy to open your text editor by just clicking on a specific code block.
General
Next.js has had support for dynamic imports through next/dynamic since Version 3. As early adopters of this technology, we had to write our own solution for handling import(). As a consequence, Next.js was beginning to diverge from the support that webpack later introduced for it and some features were missing. Because of this Next.js did not support a few import() features webpack has introduced since. For example, naming and bundling certain fi