Guides usage of Turbopack (default in Next.js 16+) vs webpack for development, explains file-system caching, and covers middleware file naming changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:nextjs-turbopackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Next.js 16+ 默认在本地开发中使用 Turbopack:一个用 Rust 编写的增量打包器,显著加快开发启动和热更新。
Next.js 16+ 默认在本地开发中使用 Turbopack:一个用 Rust 编写的增量打包器,显著加快开发启动和热更新。
--webpack(或 --no-turbopack,具体取决于您的 Next.js 版本;查看您版本的文档)禁用。next build)可能使用 Turbopack 或 webpack,具体取决于 Next.js 版本;查看官方 Next.js 文档以获取您的版本。用于:开发或调试 Next.js 16+ 应用、诊断慢开发启动或 HMR,或优化生产包。
next dev 使用 Turbopack 运行,除非禁用。.next 下;基本使用不需要额外配置。next dev
next build
next start
运行 next dev 使用 Turbopack 进行本地开发。使用 Bundle Analyzer(请参阅 Next.js 文档)优化代码拆分并修剪大型依赖项。尽可能使用 App Router 和服务器组件。
Next.js 16 引入了 proxy.ts 作为中间件文件名,取代了较旧的 middleware.ts 约定:
proxy.tsmiddleware.ts文件名更改与 Next.js 版本相关联,而不是与使用的打包器(Turbopack 或 webpack)相关。始终查看您正在审查的版本的官方文档。
不要在 Next.js 16 项目中将 proxy.ts 标记为错误命名或缺少的中间件文件。 文件是正确且有意为之。建议重命名为 middleware.ts 会破坏中间件执行。
npx claudepluginhub aaione/everything-claude-code-zhGuides usage of Turbopack vs webpack in Next.js 16+, covers incremental bundling, FS caching, dev speed optimization, and middleware filename changes.
Guides Next.js 16+ Turbopack for faster dev via incremental bundling, FS caching, and HMR; covers webpack comparison, bundle analysis, and production builds.
Provides Turbopack expertise for Next.js bundling, including top-level config in Next.js 16, HMR optimization, build debugging, CSS handling, and Webpack comparisons.