Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👀 Highlights
Nuxt CLI v3.26 focuses on performance with faster cold starts, intelligent caching, and architectural improvements that prepare the foundation for Nuxt v4. I very much hope it will make your dev workflow noticeably faster and more responsive.
I'm hoping to write up a little bit more about how we did this, but the key changes include:
🚀 Faster Development Server
Starting your Nuxt development server is now significantly faster. We've optimized the initialization sequence to prioritize critical operations and reduce startup time, especially noticeable in larger projects (#902).
🔥 Node.js Compile Cache
The Node.js compile cache is now enabled automatically when supported, providing up to 3x faster startup times for subsequent CLI operations (#911).
The CLI automatically detects support and falls back gracefully when not available. (You can also set
NODE_DISABLE_COMPILE_CACHE=1to disable it.)📁 Native File Watching
File watching now uses native
fs.watchAPIs for watching configuration files,.env, and thedistdirectory. This provides faster feedback and uses fewer system resources (#913).🔌 Socket-Based Development Proxy
The Nuxt dev server uses an internal connection between the host/port that the CLI starts, and the actual dev server. Previously, we used an internal TCP/IP network port, which had extra overhead, particularly on Windows machines. Now, where supported (currently Nuxt v4 only), we use a socket (#921).
You can also test this with Nuxt v3 by setting the
NUXT_SOCKETenvironment variable, but until v3.18 is released, this may actually slow down your dev server as the current Nuxt v3vite-nodedev server does not support sockets and will fall back to the public network interface.⚡ Faster TypeScript Support
TypeScript resolution now happens in parallel with Nuxt type preparation, reducing
nuxt typechecktimes. The CLI also supports TypeScript project references, making it easier to work with monorepos (this also prepares for enhanced TypeScript integration in Nuxt v4) (#928).🛠️ Layer Support with
--extendsCreate new Nuxt projects that extend existing layers with the new
--extendsoption (#933):It's advised instead to include the layer you extend in your
nuxt.configfile but this can be considered an escape hatch for situations where this is not possible.🎯 Better Module Management
The
nuxt initcommand now provides a cleaner module selection experience. Modules that are dependencies of other modules are automatically hidden, and you can skip module selection entirely with--no-modules.We plan to improve this further in the next release with #910.
🔧 Stability Improvements
This release comes with plenty of bug fixes, of course, as well as prioritising the version of
@nuxt/kitactually used by the version of Nuxt you have installed. (This should fix some edge cases issues where the CLI was using a different version of@nuxt/kitthan Nuxt itself.)👉 Changelog
compare changes
🚀 Enhancements
🔥 Performance
🩹 Fixes
💅 Refactors
🏡 Chore
✅ Tests
🤖 CI
❤️ Contributors