#How to export classes with Astro?

1 messages · Page 1 of 1 (latest)

tribal olive
#

In the vite announcement post I saw that there's various ways to expose classes (for workflows and DO) — but I haven't found a way to do this in an Astro app.

I think the issue is that the cloudflare adapter creates dist/_worker.js/index.js but there's no way to extend what is exported from this file.

Has anyone else experimented with this and has more ideas to share? Otherwise I might try to open an issue on the Astro repo.

tribal olive
#

How to export classes with Astro?

severe wagon
#

I am wondering the same thing! I want to export a durable object class. Any ideas?