This codemod updates Svelte component rendering:
- Converts calls to Component.render({...}) to render(Component, { props }).
- Ensures the import statement import { render } from 'svelte/server' is added if render is used.
Before
jsx
After
jsx
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
The easiest way to run this codemod without installing anything globally:
This codemod updates Svelte component rendering:
jsx
jsx
Build your own codemod and share it with the community.