swc_core::common::errors

Static HANDLER

pub static HANDLER: ScopedKey<Handler>
Available on crate feature __common only.
Expand description

Used for error reporting in transform.

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

e.g.

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

See Handler for actual usage examples.