docs/zh-CN/skills/nextjs-turbopack/SKILL.md
Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。
npx skillsauth add ysyecust/everything-claude-code nextjs-turbopackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Next.js 16+ 在本地开发中默认使用 Turbopack:这是一个用 Rust 编写的增量捆绑器,能显著加快开发启动和热更新的速度。
--webpack(或 --no-turbopack,具体取决于你的 Next.js 版本;请查阅你所用版本的文档)来禁用。next build) 可能使用 Turbopack 或 webpack,这取决于 Next.js 版本;请查阅你所用版本的官方 Next.js 文档。适用场景:开发或调试 Next.js 16+ 应用,诊断开发启动或热模块替换速度慢的问题,或优化生产环境捆绑包。
next dev 默认使用 Turbopack,除非被禁用。.next 下;基本使用无需额外配置。next dev
next build
next start
运行 next dev 以使用 Turbopack 进行本地开发。使用捆绑包分析器(参见 Next.js 文档)来优化代码分割并剔除大型依赖。尽可能优先使用 App Router 和服务器组件。
tools
日本語翻訳:このファイルは production-scheduling 用の日本語翻訳が必要です
testing
日本語翻訳:このファイルは production-audit 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-lens 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-capability 用の日本語翻訳が必要です