Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API references

Turbopack uses code comments and rustdoc to document the API. The full package documentation can be found here.

The list below are packages and brief descriptions that you may want to refer to when first approaching the code.

  • napi: NAPI bindings to make Turbopack and SWC's features available in JS code in Next.js
  • next-custom-transforms: Collection of SWC transform visitor implementations for features provided by Next.js
  • next_api: Linking the interfaces and data structures of the NAPI bindings with the actual Turbopack's next.js feature implementation interfaces
  • next_core: Support and implementation of Next.js features in Turbopack