spatie/sourcemaps-lookup
Fast, memory-efficient Source Map v3 lookup for PHP. Resolve JavaScript stack frames to original source file, line/column, symbol name, and enclosing scope. Optimized for the read path and high-volume error symbolicating from uploaded sourcemaps.
Source Map v3 maps can carry an ignoreList of source array indices that debuggers should step over. isIgnored() exposes that normative field.
$position = $map->lookup(42, 17);
if ($position !== null && $map->isIgnored($position->sourceFileName)) {
// Vendor or framework code. Skip in UI.
}
The lookup accepts either the raw entry from sources[] or its sourceRoot resolved form (whichever is easiest to pass). Unknown source names return false. A map without an ignoreList field returns false for every source.
How can I help you explore Laravel packages today?