Skip to content

Commit

Permalink
enable svelte inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Feb 17, 2024
1 parent 7239d60 commit e8c382d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/MultiSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
let ul_options: HTMLUListElement
// highlight text matching user-entered search text in available options
function highlight_matching_options(event: InputEvent) {
if (!highlightMatches || typeof CSS == `undefined` || !CSS.highlights) return // don't try if CSS highlight API not supported
if (!highlightMatches || typeof CSS == `undefined` || !CSS.highlights) return // abort if CSS highlight API not supported
// clear previous ranges from HighlightRegistry
CSS.highlights.clear()
Expand Down
6 changes: 6 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,10 @@ export default {
// enable direct prop access for vitest unit tests
accessors: process.env.TEST,
},

vitePlugin: {
experimental: {
inspector: true,
},
},
}

0 comments on commit e8c382d

Please sign in to comment.