Skip to content

Commit 1a6789f

Browse files
authored
docs: add example for inspector config (#326)
1 parent 2ce87fd commit 1a6789f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/config.md

+19
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,22 @@ export default defineConfig({
313313
Set to `true` or customized `InspectorOptions` to enable svelte inspector during development.
314314

315315
When enabled, inspector mode shows you the file location where the element under cursor is defined and you can click to quickly open your code editor at this location.
316+
317+
**Example:**
318+
319+
```js
320+
export default defineConfig({
321+
plugins: [
322+
svelte({
323+
experimental: {
324+
inspector: {
325+
toggleKeyCombo: 'meta-shift',
326+
holdMode: true,
327+
showToggleButton: 'always',
328+
toggleButtonPos: 'bottom-right'
329+
}
330+
}
331+
})
332+
]
333+
});
334+
```

0 commit comments

Comments
 (0)