alexeyraspopov / picocolors

The tiniest and the fastest library for terminal output formatting with ANSI colors
ISC License
1.34k stars 44 forks source link

fix: support Vercel Edge Runtime #54

Closed brillout closed 1 year ago

brillout commented 1 year ago

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.

alexeyraspopov commented 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.

brillout commented 1 year ago

In Vercel Edge Runtime:

That's it. Feel free to change the PR and let me know if you want a reproduction.