Graduation
/
ui
/node_modules
/@sveltejs
/vite-plugin-svelte-inspector
/src
/runtime
/load-inspector.js
| // @ts-expect-error missing | |
| // eslint-disable-next-line n/no-missing-import | |
| import Inspector from 'virtual:svelte-inspector-path:Inspector.svelte'; | |
| function create_inspector_host() { | |
| const id = 'svelte-inspector-host'; | |
| if (document.getElementById(id) != null) { | |
| throw new Error('svelte-inspector-host element already exists'); | |
| } | |
| const el = document.createElement('div'); | |
| el.setAttribute('id', id); | |
| document.documentElement.appendChild(el); | |
| return el; | |
| } | |
| new Inspector({ target: create_inspector_host() }); | |