Launch

Let’s fire it up:

SVELTE_INSPECTOR_OPTIONS=true pnpm dev

That SVELTE_INSPECTOR_OPTIONS variable enables the Svelte inspector, which lets us select an element with Option-X or Alt-X and go right to the place where it’s defined.

You probably don’t want to have to type it every time you start the dev server! I recommend adding it to your bash config, wherever it lives. I’ve already got it enabled in my .zshrc file, which means I can just run this:

pnpm dev

If it didn’t work for you, then you can navigate to the file manually — it’s src/routes/+page.svelte. Try editing it!