Modularize SvelteKit #2611
Labels
feature / enhancement
New feature or request
size:large
significant feature with tricky design questions and multi-day implementation
Milestone
Describe the problem
A popular point of feedback from the other maintainers is that SvelteKit is not as modular as we had hoped we might make it at the beginning of the project
Describe the proposed solution
We could possible split out a few different pieces:
vite-plugin-svelte
and I'm not sure there's much more that makes sense to split out thereI'd written a bit about this in sveltejs/rfcs#36 originally for Sapper and tried to update the proposal a bit for SvelteKit though further updates may be needed
I don't know whether it'd be possible to make the router implementation pluggable, but I think it'd be a cool goal. I also think it'd be nice to remove any globals which would help for testing (right now you can mostly only write tests if you use Jest and mock the globals) and allow you to have multiple router instances (@pngwn has long asked for microfrontend support and while that's not something I'm overly familiar with I could imagine multiple routers getting pulled in)
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: