Only Cliches
Async SSR Magic?
Trying to get Async SSR working in my project, I'm using esbuild. Working on troubleshooting and I found this lovely text box on the SSR docs page: "Keep in mind that you will need a bundler like Vite, Webpack, or Rollup to bundle your application. Here's a fully functional example using rollup and express. solid-ssr-workbench. This repo contains examples of all 3 forms of SSR."
I dove into the example repo provided, the only difference I could find between a typical solid config and this one was this line:
presets: [["solid", { generate: "ssr", hydratable: true, async: true }]]
So there's an async
option for the solid babel preset! I dropped this into my esbuild object with plugins: [solidPlugin({ solid: { generate: "ssr", hydratable: true, async: true } })]
but things still aren't working. I also tried creating a bespoke version of esbuild-plugin-solid with the newest babel-preset-solid from NPM included. Still, no dice.
Is it truly the case that I MUST switch to a fat bundler to get async SSR working? There's gotta be a way to get the rendering working outside of Vite, Rollup or Webpack.7 replies