-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can esbuild support go:embed? #3288
Comments
I'm closing this issue as a duplicate of #690. I'm not going to add a Go-only interface such as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to compile javascript on the fly (to serve request-specific JS) and I compile/minify code on every request (it's cached, don't worry!).
A good amount of time is spent reading files from disk so I want to use
//go:embed
to embed the code directly into my binary, to avoid costly I/O. Could esbuild support virtual file systems? Something like:This would also simplify deployments, as you can just package a single binary instead of carrying JS code around separately.
To be honest, I really can't think of a use-case outside my own. But I bet there are other places this can be useful. I can raise a PR if this is approved.
PS: Thanks for the library. You rock!
The text was updated successfully, but these errors were encountered: