[labs/ssr] Deno Support
See original GitHub issueShould this be an RFC?
- This is not a substantial change
Which package is this a feature request for?
SSR (@lit-labs/ssr)
Description
I’m trying to use Lit.js SSR in the Astro framework with the Deno SSR engine, but Lit.js SSR currently depends on require()
s of Node.js-only modules which do not work in Deno.
I know SSR is work-in-progress anyway, but it would be great to have a way to use Lit’s SSR on a Deno server.
Alternatives and Workarounds
I may have to try switching to Node.js instead of Deno, but Deno is preferred for my project due to it’s ability to deploy to Deno Deploy’s hosted service.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Demo Simulation Virtual Lab - Labster
In this demo virtual lab simulation, you will help Dr. One in identifying a fundamental biological molecule. During your mission, you will watch...
Read more >Demo Simulation | Virtual Lab - YouTube
In this demo virtual lab simulation, you will help Dr. One identify a ... New at Labster : Introducing our newest features built...
Read more >Labster - YouTube
Best of all, Labster support is designed to serve both teachers and students. This means teachers can rely on ... Labster Demo for...
Read more >How To: Labster - YouTube
Here's a quick tutorial on how to use Labster on zSpace! Labster provides access to problem-based lab experiments in biology, chemistry, ...
Read more >Labster Pricing 2022 : Demo, Reviews & Features
User may contact the support team for Labster pricing options. Labster Digital Learning Platforms Demo: Through its sci-fi realm, the Labster Virtual Lab ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it sounds like the problem isn’t actually that lit-ssr is depending on commonjs modules, it’s that we’re depending on built-in node modules?
We don’t do this much fwict, other than
createRequire
in parse5-utils, and transitively vianode-fetch
in the DOM shim (excluding the VM-based entry points, which wouldn’t be in scope for Deno usage anyway).Once we upgrade to the new esm parse5 and can rely on node’s built-in
fetch
in the dom-shim, seems like this might fix itself?I would switch to Deno in a heartbeat if you ended up making those changes. Would simplify the DX by quite a bit.