-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
[esbuild] expose the platform
option to bundle code run on node
#13136
Comments
Can you elaborate a little about how this ends up in e.g. a Cloudflare worker? |
Sure, Cloudflare Pages offer an advanced mode for serverless functions, which the entry point is However, currently
It will result in an error when importing Node built-in modules.
With the |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Dear Hugo team, I'd like request a feature to specify the
platform
option of esbuild.Backgrounds
There are many static site hosting platforms that support serverless functions (e.g. Cloudlfare Worker), it would be great if we could bundle JavaScript code that runs on node, which provides better integration capabilities.
With the esbuild
platform
option, Hugo can be a Node application packing tool.Pros
params
option ofjs.Build
).I am willing to implement it (I have a working local branch) if this request is accepted.
The text was updated successfully, but these errors were encountered: