turbopack

Configure Turbopack in Next.js 16 and migrate from Webpack.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill turbopack-esneiderbravo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turbopack
Source: https://github.com/esneiderbravo/hackaton/tree/main/.github/skills/turbopack
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill turbopack-esneiderbravo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turbopack guidance to configure Next.js bundling, optimize HMR, and diagnose build issues.

Core Features & Use Cases

  • Guidance for top-level Turbopack configuration in Next.js 16.
  • Techniques for diagnosing and speeding up dev and production builds.
  • Migration help from Webpack to Turbopack, including CSS and asset handling.

Quick Start

Configure a Next.js 16 project to use Turbopack at the top level and start the dev server to observe instant HMR and faster builds.

Frequently Asked Questions about turbopack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate my Next.js project from Webpack to Turbopack?

Migrating from Webpack to Turbopack involves configuring the top-level bundler settings in your Next.js 16 project, specifically addressing CSS and asset handling differences to ensure a smooth transition and faster builds.

How do I configure Turbopack in a Next.js 16 project?

You configure Turbopack in a Next.js 16 project by adjusting the top-level bundler configuration, which enables instant HMR and significantly faster dev and production builds.

Why is my Turbopack build failing and how can I diagnose it?

To diagnose Turbopack build failures, utilize the build-diagnostics guidance to identify issues with your Next.js bundling configuration, ensuring your setup adheres to Turbopack's specific requirements for CSS and assets.

Does Turbopack support custom CSS handling in Next.js?

Yes, Turbopack supports CSS handling in Next.js, and specific migration guidance is provided to help you configure asset and CSS processing correctly when moving from Webpack.

What is the best way to optimize HMR for Next.js builds?

The best way to optimize HMR is to enable Turbopack in your Next.js 16 project, which provides instant Hot Module Replacement and significantly speeds up both development and production builds.