Failed after BDBrenley Dueck
View latest

chore(solid): bump to solid-js 2.0.0-rc.4 and @solidjs/vite-plugin 3.0.0-next.35

8189ce205a6Open on GitHub

Self-Healing CI

Classification: Code change neededFix generatedVerified 1 task

We fix the rsbuild SSR server startup crash ("Client-only API called on the server side") by extending the tanstackStart rsbuild plugin to also tap the native solid loader options, not just babel presets. With @rsbuild/plugin-solid@2.0.0-beta.2 defaulting to compiler='native', there is no babel-preset-solid entry in the babel chain to patch, so the SSR generate option was never applied and server bundles were compiled as DOM code. The added code path targets CHAIN_ID.ONE_OF.JS_MAIN > use('solid') and sets { generate: 'ssr', hydratable: true } for node targets, mirroring what the babel path already did for the old compiler.

Commit"fix(solid-start): configure native solid compiler SSR for rsbuild"

1 file changed