gh-12624
Rich Harris 5 months ago
parent 9fb31d5b00
commit 0ca2b0169e

@ -64,7 +64,7 @@ function assign_locations(node, filename, locations) {
*/
export function print_location(element) {
// @ts-expect-error
const loc = element.__svelte_meta.loc;
const loc = element.__svelte_meta?.loc;
if (!loc) return;
// add a zero-width space after `/` characters to prevent Chrome devtools printing it as a link

Loading…
Cancel
Save