A transpiler that converts Vue Single File Components (SFCs) into Svelte components. Current version 0.0.11 is in early development with sporadic releases. Supports simple HTML, props, data, v-if/v-else/v-for directives, and v-bind. Does not yet support methods, computed properties, lifecycle hooks, v-model, or mixins. Differentiates as a direct Vue-to-Svelte migration tool, but maturity is low. TypeScript type definitions are included.
npm install vue2svelteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: instantiate Vue2Svelte with a Vue options object, then call compile() to get a Svelte string.
Only use with simple components that rely solely on template, props, data, and limited directives (v-if, v-for, v-bind).
Correct usage: `const compiler = new Vue2Svelte(options); compiler.compile();`
Save the string as a .svelte file and import it with Svelte's bundler plugin.
Use `import Vue2Svelte from 'vue2svelte'` (ESM default import).
Use `new Vue2Svelte(component)` to instantiate.
Run `npm install vue2svelte` or check your bundler configuration for ES modules.
No dependency data recorded yet.