# Next.js: an AI skill analyzes imports to reduce shipped JavaScript

Canonical source : [Next.js: an AI skill analyzes imports to reduce shipped JavaScript](<https://sebastien.rigaux.be/en/tech-watch/links/nextjs-an-ai-skill-analyzes-imports-to-reduce-shipped-javascript>)

Next.js 16.4 includes an AI agent skill that analyzes Turbopack’s module and chunk graph to find imports that add to shipped JavaScript. It can, for example, spot when a static import elsewhere in the bundle prevents a component from staying deferred, then suggest changes for review before applying them.

The analyzer also compares snapshots and filters code loaded on the initial render. Vercel reports nearly two megabytes of compressed JavaScript saved across v0 and vercel.com; the fixes were checked on preview deployments. The tool requires Turbopack, the default bundler since Next.js 16.

- Selected on : 2026-10-30

- Resource publication : 2026-10-28

- Entry updated : 2026-11-07T20:32:37+0000

- Format : Article

- Source language : EN

- Credit : Will Binns-Smith

- Found via : [This week in React](<https://thisweekinreact.com/>)

Original resource : [Next.js: an AI skill analyzes imports to reduce shipped JavaScript](<https://nextjs.org/blog/ship-less-javascript-with-ai>)

Tags : [Next.js](<https://sebastien.rigaux.be/en/tech-watch/tags/nextjs>) · [Agent skills](<https://sebastien.rigaux.be/en/tech-watch/tags/agent-skills>) · [Web Performance](<https://sebastien.rigaux.be/en/tech-watch/tags/web-performance>) · Turbopack

Available versions : [Français](<https://sebastien.rigaux.be/veille/liens/nextjs-une-skill-ia-analyse-et-reduit-les-imports-javascript>) · [English](<https://sebastien.rigaux.be/en/tech-watch/links/nextjs-an-ai-skill-analyzes-imports-to-reduce-shipped-javascript>)

[Back to tech watch](<https://sebastien.rigaux.be/en/tech-watch>)
