Vite 2.x plugin that enables using kebab-case (hyphenated) attribute names for Svelte component props, automatically mapping them to camelCase component variables. Version 1.0.3 is current, with no active development observed. Works as a Vite plugin for SvelteKit or Svelte projects using Vite. Differentiates by eliminating the need to manually write camelCase props in templates, allowing HTML-conventional kebab-case while leveraging Svelte's reactivity.
npm install vite-plugin-svelte-kebab-propsVerified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to a Vite configuration file, enabling kebab-case props in Svelte components.
Check compatibility with your Vite version; consider an alternative if using Vite 3+.
Ensure all kebab-case props are explicitly exported as `let` variables.
Order plugins carefully; put svelteKebabProps before other template transformers.
Evaluate if needed; replicate functionality with a custom preprocessor if issues arise.
Run npm install --save-dev vite-plugin-svelte-kebab-props or equivalent.
Use `import svelteKebabProps from 'vite-plugin-svelte-kebab-props'`.
Downgrade to Vite 2.x or find an alternative plugin.