![]() We currently abuse the browser builds for Web streams derived environments. We already have a special build for Bun but we should also have one for [other "edge" runtimes](https://runtime-keys.proposal.wintercg.org/) so that we can maximally take advantage of the APIs that exist on each platform. In practice, we currently check for a global property called `AsyncLocalStorage` in the server browser builds which we shouldn't really do since browsers likely won't ever have it. Additionally, this should probably move to an import which we can't add to actual browser builds where that will be an invalid import. So it has to be a separate build. That's not done yet in this PR but Vercel will follow Cloudflare's lead here. The `deno` key still points to the browser build since there's no AsyncLocalStorage there but it could use this same or a custom build if support is added. |
||
---|---|---|
.. | ||
client.js | ||
index.js | ||
profiling.js | ||
server-rendering-stub.js | ||
server.browser.js | ||
server.bun.js | ||
server.edge.js | ||
server.js | ||
server.node.js | ||
static.browser.js | ||
static.edge.js | ||
static.js | ||
static.node.js | ||
test-utils.js | ||
unstable_testing.js |