Communitygithub.com

ComeOnOliver/skillshub

Next.js 16+ 및 Turbopack — 증분 번들링, 파일 시스템 캐싱, 개발 속도, 그리고 Turbopack과 webpack 사용 시기

skillshub란 무엇인가요?

이 스킬은 Next.js 16+에서 기본 개발 서버로 사용되는 Turbopack에 대한 상세한 내용을 제공합니다. Turbopack은 Rust로 작성된 증분 번들러로, 특히 대규모 애플리케이션에서 콜드 스타트와 핫 모듈 리로딩(HMR) 속도를 크게 향상시킵니다. 이 문서는 Turbopack(기본 개발 모드), Webpack(레거시 폴백 모드), 프로덕션 빌드 환경을 언제 사용해야 하는지 설명하고, 파일 시스템 캐싱을 통한 속도 향상 원리, 실험적 번들 분석기 기능(Next.js 16.1+), 그리고 CLI 명령어 사용법을 다룹니다. 개발 속도가 느릴 때 문제를 진단하거나, 프로덕션 번들 크기를 최적화해야 하는 Next.js 16+ 개발자에게 필수적인 참고 자료입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/affaan-m/everything-claude-code/nextjs-turbopack

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Next.js 및 Turbopack

Next.js 16+는 로컬 개발 시 기본적으로 Turbopack을 사용합니다. Turbopack은 Rust로 작성된 증분 번들러로, 개발 시작 및 핫 리로딩 속도를 크게 향상시킵니다.

사용 시기

  • Turbopack (기본 개발 모드): 일상적인 개발에 사용합니다. 특히 대규모 애플리케이션에서 콜드 스타트 및 핫 모듈 교체(HMR) 속도가 더 빠릅니다.
  • Webpack (레거시 개발 모드): Turbopack 오류가 발생하거나 개발 단계에서만 사용 가능한 webpack 플러그인에 의존해야 하는 경우에만 사용합니다. --webpack(또는 --no-turbopack, 사용 중인 Next.js 버전에 따라 다름, 해당 버전의 문서 참조) 플래그로 비활성화할 수 있습니다.
  • 프로덕션 환경: next build의 프로덕션 빌드 동작은 Next.js 버전에 따라 Turbopack 또는 webpack을 사용할 수 있습니다. 사용 중인 버전의 공식 Next.js 문서를 참조하세요.

적용 대상: Next.js 16+ 애플리케이션 개발 또는 디버깅, 개발 시작 또는 HMR 속도 저하 문제 진단, 프로덕션 번들 최적화.

작동 원리

  • Turbopack: Next.js 개발을 위한 증분 번들러입니다. 파일 시스템 캐싱을 활용하므로 재시작 속도가 훨씬 빠릅니다 (예: 대규모 프로젝트에서 5–14배 빠름).
  • 개발 환경에서 기본 활성화: Next.js 16부터 next dev는 기본적으로 비활성화되지 않는 한 Turbopack을 사용합니다.
  • 파일 시스템 캐시: 재시작 시 이전 작업 결과를 재사용합니다. 캐시는 일반적으로 .next 디렉토리에 위치하며, 기본 사용 시 추가 설정이 필요하지 않습니다.
  • 번들 분석기 (Next.js 16.1+): 출력을 검사하고 무거운 종속성을 발견하는 실험적 번들 분석기입니다. 설정 또는 실험적 플래그를 통해 활성화할 수 있습니다 (사용 중인 Next.js 버전 문서 참조).

예제

명령어

next dev
next build
next start

사용법

next dev를 실행하여 Turbopack으로 로컬 개발을 수행합니다. 번들 분석기(Next.js 문서 참조)를 사용하여 코드 분할을 최적화하고 큰 종속성을 제거합니다. 가능한 경우 App Router와 서버 컴포넌트를 우선 사용하세요.

모범 사례

  • 안정적인 Turbopack 및 캐싱 동작을 위해 최신 Next.js 16.x 버전을 유지하세요.
  • 개발 속도가 느리다면 Turbopack을 사용 중인지(기본값인지) 확인하고, 캐시가 불필요하게 지워지지 않는지 확인하세요.
  • 프로덕션 번들 크기 문제가 발생하면 사용 중인 버전의 공식 Next.js 번들 분석 도구를 사용하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Next.js 16+ uses App Router with Server Components by default. Client Components are only used when interactivity is needed (hooks, event handlers, browser APIs).

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

관련 스킬