imagio
imagio
SSolidJS
Created by imagio on 3/14/2025 in #support
What's the right way to conditionally import based on whether code is running on the client?
I've got some code that uses playwright. This won't work on the client. It's abstracted into a service (with effect-ts) so I could easily provide a separate implementation that would be client friendly. What's the beset way to conditionally import based on whether code is running client side or server side?
3 replies