Expand description
Utilities for constructing and using the NextTurbopackContext type.
Structs§
- Napi
Next Turbopack Callbacks - A collection of helper JavaScript functions passed into
crate::next_api::project::project_newand stored in theNextTurbopackContext. - Napi
Next Turbopack Callbacks JsObject - A version of
NapiNextTurbopackCallbacksthat can accepted as an argument to a napi function. - Next
Turbopack Context - 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. - Turbopack
Internal Error Opts - Arguments for
NapiNextTurbopackCallbacks::throw_turbopack_internal_error.
Enums§
- Memory
Eviction Mode - Turbopack’s memory eviction strategy for the persistent cache, mirroring the
experimental.turbopackMemoryEvictionconfig option.
Functions§
- cache_
describe - Returns the cache version
describestring for the given Next.js version, of the formv<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.