@codegraphy-dev/plugin-svelte
v0.2.1
Published
CodeGraphy Svelte plugin
Maintainers
Readme
CodeGraphy Svelte
Adds Svelte component script import analysis to CodeGraphy.
- Package:
@codegraphy-dev/plugin-svelte - Plugin API:
@codegraphy-dev/plugin-api
Install
Install @codegraphy-dev/core first if the codegraphy CLI is not already available.
npm i -g @codegraphy-dev/plugin-svelte
codegraphy plugins register @codegraphy-dev/plugin-svelte
codegraphy plugins enable @codegraphy-dev/plugin-svelte
codegraphy indexWhat It Provides
This plugin parses Svelte components with svelte/compiler and indexes relative imports from module and instance scripts.
- runtime imports become baseline import relationships
- type-only imports become type-import relationships
- dynamic
import()calls become lazy import relationships - explicit
.sveltecomponent imports resolve to Svelte component files - TypeScript and JavaScript script imports resolve with the baseline extension candidates
This first version intentionally skips SvelteKit route semantics.
