Deno support
See original GitHub issueSo far it seems like twind works with client side Deno. Either shim or regular (I also tested https://cdn.esm.sh/twind
, https://jspm.dev/twind
). This is not that surprising given that twind already works as es module in the browser 😃
import 'https://cdn.skypack.dev/twind/shim'
import { tw, setup } from 'https://cdn.skypack.dev/twind'
As for server-side support, the first issue is that it just crashes 😃
https://cdn.esm.sh/twind/server https://jspm.dev/twind/server https://cdn.skypack.dev/twind/server
I guess it happens because of dependency on async rendering for node.
So I tried to create a simple server on Deno that could run on codesanbox https://codesandbox.io/s/deno-twinddev-ssr-p4l2h?file=/src/index.ts
This one is actually not that bad 😃 it crashes if I try to update to the latest version, but otherwise does most of what I expected twind/server
to do 😃
p.s. I personally was trying it out in aleph.js but it comes with its own complications that probably would require a separate issue 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top GitHub Comments
@aadamsx I have a small example at https://github.com/bebraw/gustwind . It seems to work without shim and
sheet.reset
though this definitely needs more experimentation.Release v0.12.0 is published. twin/sheets/server should now work in deno