what is netlify edge package.json export condition?
it seems its using `workerd` which is cloudflare’s
but there’s no netlify-specific export condition. this is sometimes needed for some packages to work.
what is netlify edge package.json export condition?
it seems its using `workerd` which is cloudflare’s
but there’s no netlify-specific export condition. this is sometimes needed for some packages to work.
Sorry, I do not understand the question. Could you please clarify a bit more?
npm packages use “export conditions“ in package.json to provide different code for each runtime because not all runtimes have the same apis.
| “bun”: “./bun.js”, |
|---|
| “workerd”: “./cloudflare.js”, |
|---|
| “edge-light”: “./vercel.js”, |
|---|
node, bun, deno, cloudflare, vercel and others all have their own export condition. they use *that* version of the package. netlify doesn’t it seems? or what is netlify’s export condition?
Hello ,
I think its netlify limitation , netlify use a Deno runtime and it doesn’t have its own dedicated export conditions unlike bun,workerd and edge-light