Skip to content
GUIJam
Please leave a star!11 stars

Source locations

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:

<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#

TemplatesMarked
JSX in React, Preact and SolidLowercase elements, and polymorphic components such as asChild buttons
VueTemplate elements and component usages
SvelteRegular elements. Components aren't marked.
AstroElements 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.

Documentation