Closed brillout closed 1 year ago
@brillout thanks for the PR. I'm willing to ensure Edge Runtimes are supported since I'm using them as well, but I will need some additional details about the bug in question and how the suggested changes fixing it.
In Vercel Edge Runtime:
process.argv
is undefined
require
is undefined
That's it. Feel free to change the PR and let me know if you want a reproduction.
This makes
picocolors
work on Vercel's Edge Runtime.Let me know if you want a reproduction.
Context: a vite-plugin-ssr user wants to deploy to Vercel Edge: https://github.com/brillout/vite-plugin-ssr/issues/828.