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.

Functions§

create_turbo_tasks
log_internal_error_and_inform
Log the error to stderr and write a log file to disk, subject to throttling.

Type Aliases§

NextTurboTasks