Static swc_common::errors::HANDLER

source ·
pub static HANDLER: ScopedKey<Handler>
Expand description

Used for error reporting in transform.

This should be only used for errors from the api which does not returning errors.


  • parser should not use this.
  • transforms should use this to report error, as it does not return Result.

See Handler for actual usage examples.