Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When can it be used in deno #1580

Open
ynwd opened this issue Jul 19, 2020 · 6 comments
Open

When can it be used in deno #1580

ynwd opened this issue Jul 19, 2020 · 6 comments
Labels
type:feature A feature request

Comments

@ynwd
Copy link

ynwd commented Jul 19, 2020

When can it be used in deno?

@ynwd ynwd added the type:feature A feature request label Jul 19, 2020
@oshox
Copy link

oshox commented Apr 25, 2022

We'd like to see "deno bundle" support to allow deployment to Netlify Edge and others.
Or should we wait for Deno to support Vite? denoland/deno#12577

it's time for cjs to go

@DylanPiercey
Copy link
Contributor

@oshox the only way we could natively support deno is if their bundler supported registering custom extensions. IIRC it does not. Does any other non simple jsx framework support deno natively without nodejs tooling?

@oshox
Copy link

oshox commented Apr 27, 2022

@DylanPiercey Thanks for the clarification/correction. The only SSR frameworks using the built-in bundler are indeed "simple." (AlephJS being a possible exception?)
After some more consideration, maybe there's two ways to interpret "Deno Support:"
A. Compiler output can be deployed to Deno
B. Compiler can be run on Deno

A would be the concern for everyone hyped about Netlify Edge. I doubt many people will be concerned about B unless Deno starts to seriously displace Node.

@DylanPiercey
Copy link
Contributor

@oshox B is on our radar. I suspect that there are minimal if any actually changes to make for Marko to work with Netlify Edge (we already can deploy to eg cloudflare workers). We'll be investigating creating a starter project that uses Netlify Edge as well as Deno.

@oshox
Copy link

oshox commented Nov 6, 2022

A is almost working in this example:
https://github.com/oshox/marko-deno-hono

The component isn't mounting correctly. I copied the vite.config.js from the Cloudflare example; maybe it needs to be changed?

@gitsemaphore
Copy link

A is almost working in this example: https://github.com/oshox/marko-deno-hono

@oshox just wonder if you had any luck? I can't seems to access your repo. I had some luck with esm.sh unpkg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature A feature request
Projects
None yet
Development

No branches or pull requests

4 participants