What problem does this feature solve?
The enum Severity is not exposed to consumer of the crates rolldown by extension I'm not sure how it's possible to filter the build results to figure out what were warnings, errors or info.
What does the proposed API look like?
let output = bundler
.generate()
.await
.map_err(|e| anyhow!("Bundle failed: {:?}", e))?;
let errors: Vec<_> = output.warnings
.iter()
.filter(|d| d.severity() == Severity::Error) // <-- Use of an undeclared type `Severity`
.collect();
What problem does this feature solve?
The enum
Severityis not exposed to consumer of the cratesrolldownby extension I'm not sure how it's possible to filter the build results to figure out what were warnings, errors or info.What does the proposed API look like?