RafidMuhymin / astro-spa

An Astro JS component that turns a website into an SPA and boost performance using various techniques
MIT License
393 stars 14 forks source link

Enable Non-Node JS Environments (Cloudflare, Deno, etc.) #7

Open MedLeon opened 2 years ago

MedLeon commented 2 years ago

Node APIs are only used to externalizing the generated script.

In Non-Node Environments this used to throw an error.

Now the Node APIs are imported dynamically and the errors in non-Node-Envs are being catched and a message is logged.