
Jesse Pence
3.5K posts

Jesse Pence
@JessePence5
JavaScript Framework Nerd















Made some progress on supporting React Server Components in Parcel over the weekend. Will be very different from other implementations: • Not a framework. No router, server, networking layer, cache, etc. — just the raw bundling primitives. • Use with any server/router (eg express). Instead of an HTML file, your server JS file is the entry point. In each route, dynamic import a server component and render it to HTML or RSC payload. Client components and styles used by that server component are optimally bundled and loaded automatically. • You can fetch a server component whenever you want, with any networking layer. Doesn’t need to be on a route boundary (eg infinite scroll), can be sent via a web socket if you want, etc. My hope is that by exposing the raw primitives, it’ll be easier to see how RSC works and enable more freedom to experiment. Parcel is particularly well suited for this because it already supports multi-target module graphs with a single entry point. Will share more soon!

Made some progress on supporting React Server Components in Parcel over the weekend. Will be very different from other implementations: • Not a framework. No router, server, networking layer, cache, etc. — just the raw bundling primitives. • Use with any server/router (eg express). Instead of an HTML file, your server JS file is the entry point. In each route, dynamic import a server component and render it to HTML or RSC payload. Client components and styles used by that server component are optimally bundled and loaded automatically. • You can fetch a server component whenever you want, with any networking layer. Doesn’t need to be on a route boundary (eg infinite scroll), can be sent via a web socket if you want, etc. My hope is that by exposing the raw primitives, it’ll be easier to see how RSC works and enable more freedom to experiment. Parcel is particularly well suited for this because it already supports multi-target module graphs with a single entry point. Will share more soon!















