Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support Vercel Edge Runtime #54

Conversation

brillout
Copy link

@brillout brillout commented Apr 29, 2023

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: vikejs/vike#828.

@alexeyraspopov
Copy link
Owner

@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
Copy link
Author

brillout commented May 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants