JSON-safe error entries for the development error overlay.
Build errors arrive as OXC.Diagnostic maps, compiler messages, exceptions, or
arbitrary terms. entries/2 turns any of them into maps the browser overlay
renders, with a source frame when the file and line are known.
With the optional :lumis dependency and a Lumis parser package for the file's
language, such as :lumis_wasm_typescript, entries also carry frame_html, the
frame with syntax highlighting.
Summary
Functions
Build overlay entries from an error reason.
Types
@type entry() :: %{ title: String.t(), message: String.t(), file: String.t() | nil, line: pos_integer() | nil, column: pos_integer() | nil, hint: String.t() | nil, frame: String.t() | nil, frame_html: String.t() | nil, stack: String.t() | nil }