pub async fn get_diagnostics<T: Send>(
source: OperationVc<T>,
) -> Result<Arc<Vec<ReadRef<PlainDiagnostic>>>>
Expand description
Reads the turbopack_core::diagnostics::Diagnostic held by the given source and returns it as a turbopack_core::diagnostics::PlainDiagnostic. It does not consume any Diagnostics held by the source.