image for post

vite-plugin-ssr + SolidJS

Well, finally I rewrote and published my blog from NextJS to something faster. So let me remind you that it was started with unusable slow NextJS ssg compilation and thus since I'm not interested in javascript-backend (SSR), I was looking for alternatives with faster compilation and the ability to use MDX, because the components in markdown are great. I played with Astro, e11ty, solid start, sveltekit. I tried Svelte Kit but ran into issues with MDsveX which is not maintained anymore (?) & I can't use decorators for example in svelte files. So I decided to go further.

Then I found vite-plugin-ssr! Good responsive author and great ideas under the hood. It has some issues with client/server router but anyway it will be solved in v1. Recommended.

About SolidJS I can't say something, it just works. Migration from react was easy. I had some issues with mdx too, but it's easier to solve it with jsx than svelte.

The migration result snapshotted here.

It's not actual homepage sources, but close to.

And now I'm going to show you worst benches from each framework:

Build-time

build time

Copyright © 2023

Version: 0.2.24

Settings: