Currently, it requires a local link to the latest sonik
(include sonikjs/sonik#13 and manually update hono in devDeps to the latest)
git clone https://github.com/kwaa/sonik-qwik.git
cd sonik-qwik
pnpm install
pnpm link ../sonik # Your local sonik needs to install the dependencies via yarn v1... yes, it's painful.
pnpm dev # run!
Currently this repository only works as a Demo.
Also, I haven't tested if it works in deployments.
It's structure references @sonikjs/preset-react
.
It's worth noting that qwik's renderToString function is asynchronous and requires a manifest.
Here I refer to the default settings of qwikVite plugin and @qwikdev/astro
.
It just works!
SymbolMapperFn
needs to get the srcDir
option, here I set it to /app/
.
Since Qwik doesn't have hydration, I set it to simply () => {}
.
TODO
TODO