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_new
and stored in theNextTurbopackContext
. - Napi
Next Turbopack Callbacks JsObject - A version of
NapiNextTurbopackCallbacks
that 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
.
Functions§
- create_
turbo_ tasks - log_
internal_ error_ and_ inform - Log the error to stderr and write a log file to disk, subject to throttling.