When you run nuxt build before a deploy, you naturally expect the debug panel to stay asleep. In reality, Nuxt was still loading the DevTools module and over a hundred of its dependencies on every build startup—only to realize it was a production build with nothing to do.
Over 24 hours, three non-breaking patches landed: @nuxt/devtools v4.2.1, @nuxt/devtools v1.7.1, and @nuxt/scripts v1.3.14. Let's see what changed under the hood and which branch to install.
What Was Fixed in Nuxt Devtools 4.2.1 and 1.7.1
The v4 line builds on Vite DevTools and Devframe for Nuxt 4 or 5 and Vite 8 (@nuxt/kit ^4.0.0-0 || ^5.0.0-0, vite ^8.1.5). Release v4.2.1 tackles three practical pain points.
First is wasted work during production builds. In PR #1167, the mode check moved into resolveSetupMode() before dynamically importing module-main, and onboarding stopped preloading @devframes/hub-ui-onboard. Unless build.analyze is enabled, the panel exits immediately. Benchmarks on an empty project (4 cores):
| Production Build Metric | Before | After | Delta |
|---|---|---|---|
loadNuxt (median of 20 runs) | 226.4 ms | 169.6 ms | −57 ms |
| DevTools module setup | 56.9 ms | 0.0 ms | −57 ms |
Modules loaded in loadNuxt | 449 | 313 | −136 |
Full nuxi build (median of 30) | 1158 ms | 1140 ms | −18 ms |
Nuxt startup gets the biggest boost because the runtime no longer parses unneeded packages. If you turn on build.analyze, the panel still loads as usual.
The second fix helps offline setups and locked-down networks. Previously, the panel UI fetched logos from nuxt.com and an unpinned cdn.jsdelivr.net/gh/nuxt/devtools@main/... branch. In PR #1166, SVGs were embedded into packages/devtools/src/branding.ts as Data URIs (data:image/svg+xml), keeping assets in the bundle with zero outbound requests.
The third addition is support for the Google Antigravity browser IDE (PR #992). Normally, jumping to a component calls launch-editor, which looks for a local binary in PATH and crashes with ENOENT. Now, when antigravity is selected, the DevTools server intercepts openInEditor, sends an openUrl RPC event to the client, and the browser opens the URL scheme via window.open (it may ask for popup permission on the first click).
Alongside that, the v1 branch for Nuxt 3 (peerDependencies: { "vite": "*" }) got an update. The highlight of v1.7.1 is the backport of security fix CVE-2025-52662 (PR #993): the auth page replaced innerHTML with textContent to close an XSS vector. It also widens getPackageInfo paths for monorepos and sets a default host for embedded VS Code. Keep the branches separate: use 1.7.1 for Nuxt 3.
Nuxt Scripts 1.3.14 and Upgrade Commands
@nuxt/scripts v1.3.14 ships on the 1.x branch and fixes a Windows crash. Nitro stores cache via unstorage, yet Node.js's ES module loader rejected raw absolute paths like C:\.... PR #992 backports fix #971: the cache driver now loads via a file:// URL, while user-defined app mount points keep priority.
On Nuxt 4 or 5, update both packages with a single command:
# Update packages with pnpm or npm
pnpm up @nuxt/devtools @nuxt/scripts
npm update @nuxt/devtools @nuxt/scripts
If a Nuxt 4.5+ project still pulls DevTools v3, pin v4 via overrides in package.json:
{
"overrides": {
"@nuxt/devtools": "^4.2.1"
}
}
For Google Antigravity, you don't need to touch your Nuxt config—just select antigravity in the panel's Settings -> Editor. For local CLI editors like Cursor, set LAUNCH_EDITOR=cursor in .env and keep the standard setup in nuxt.config.ts:
// nuxt.config.ts — standard panel setup
export default defineNuxtConfig({
devtools: {
enabled: true,
},
})
On Nuxt 3, grab 1.7.1 to patch CVE-2025-52662; on Windows, update @nuxt/scripts to 1.3.14; and on Nuxt 4 and 5, moving to 4.2.1 immediately trims unused modules from production builds and cuts external CDN requests.
