# Source locations

> How GUIJam maps every element on your page to the file, line and column that rendered it, with the data-gj-src attribute, in development only.

GUIJam knows where every element comes from. In development, the dev server plugin adds a `data-gj-src` attribute to each element it can map:

```html
<button data-gj-src="src/components/OrderButton.tsx:14:5" class="rounded-md bg-blue-600">
  Order now
</button>
```

The value is `path:line:column`: the path relative to your project root, a 1-based line, and the column. You can see it in your browser's DevTools.

## What gets marked

| Templates                      | Marked                                                                   |
| ------------------------------ | ------------------------------------------------------------------------ |
| JSX in React, Preact and Solid | Lowercase elements, and polymorphic components such as `asChild` buttons |
| Vue                            | Template elements and component usages                                   |
| Svelte                         | Regular elements. Components aren't marked.                              |
| Astro                          | Elements in `.astro` templates                                           |

Each framework's own compiler does the parsing: `oxc` for JSX, your project's `vue/compiler-sfc` for Vue, and `svelte/compiler` for Svelte, so the locations match the code you wrote.

## Development only

Source locations are added only by the dev server. A test in the GUIJam repository checks that production builds are byte-for-byte identical with and without GUIJam.
