Skip to main content

Module turbopack_ctx

Module turbopack_ctx 

Source
Expand description

Utilities for constructing and using the NextTurbopackContext type.

Structs§

NapiNextTurbopackCallbacks
A collection of helper JavaScript functions passed into crate::next_api::project::project_new and stored in the NextTurbopackContext.
NapiNextTurbopackCallbacksJsObject
A version of NapiNextTurbopackCallbacks that can accepted as an argument to a napi function.
NextTurbopackContext
A value often wrapped in [napi::bindgen_prelude::External] that retains the TurboTasks instance used by Next.js, and various napi helpers that are passed to us from JavaScript.
TurbopackInternalErrorOpts
Arguments for NapiNextTurbopackCallbacks::throw_turbopack_internal_error.

Enums§

MemoryEvictionMode
Turbopack’s memory eviction strategy for the persistent cache, mirroring the experimental.turbopackMemoryEviction config option.

Functions§

cache_describe
Returns the cache version describe string for the given Next.js version, of the form v<next_version>-<git_short_sha> (e.g. v16.0.1-canary.13-94e9fa6).
create_turbo_tasks
git_version_info
Returns version info derived from the supplied Next.js version and compile-time git metadata.
log_internal_error_and_inform
Log the error to stderr and write a log file to disk, subject to throttling.

Type Aliases§

NextTurboTasks