You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To maximize the potential and viability of wcc across as many runtimes as possible, an effort should be undertaken to ensure support across "standards" based serverless and edge runtime environments. Serverless environments are a little more forgiving, but edge functions typically cannot not use things like Node's fs or CommonJS. However, they do (plan to) standardize on Web APIs like fetch, Request and Response.
Details
Basically need to evaluate and allow wcc to be usable outside of just NodeJS. That will mean validating our dependencies for their module system, and any usage of Node specific APIs like fs. Perhaps this may require a pre-bundle if there is an expectation of ESM only as well, but we will have to see.
I think it would be great to reach
Lambda@Edge
Netlify Edge Functions
Cloudflare Workers
Vercel
The text was updated successfully, but these errors were encountered:
While path and url are easy enough to work around, fs seems like it would be significantly harder without having to employ some sort of "adapter" pattern / feature detection, since it doesn't seem like it is possible to use fetch with a file://, except in Deno.
Type of Change
Summary
To maximize the potential and viability of
wcc
across as many runtimes as possible, an effort should be undertaken to ensure support across "standards" based serverless and edge runtime environments. Serverless environments are a little more forgiving, but edge functions typically cannot not use things like Node'sfs
or CommonJS. However, they do (plan to) standardize on Web APIs likefetch
,Request
andResponse
.Details
Basically need to evaluate and allow
wcc
to be usable outside of just NodeJS. That will mean validating our dependencies for their module system, and any usage of Node specific APIs likefs
. Perhaps this may require a pre-bundle if there is an expectation of ESM only as well, but we will have to see.I think it would be great to reach
The text was updated successfully, but these errors were encountered: