-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Support More/All ESBuild options #7697
Comments
@bep Is there a way to access all other ESBuild options? It is not clear to me as well from the Hugo documentation. For example I want to access JSX factory and JSX fragment options in order for to use Preact inside Hugo, however I do not know to how to add this options in Hugo. Is this possible? |
I solved this (only for ESBuild options to use Preact) after looking at this question on discourse: https://discourse.gohugo.io/t/javascript-build-jsx-factory/30268
I also created a minimal example of using Preact in Hugo with ESBuild, here is the public repo: github.com/shafiemukhre/preact-hugo-esbuild |
@shafiemukhre Yes, please. but please do it in the docs repo. As to adding "all options": ESBuild is evolving fast and he is adding options all the time; most option need some thinking on the Hugo side, so adding one option isn't cost free (at its minimal we need to update the documentation). |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
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. |
Hi, ran across an issue trying to import an
.svg
and then have ESBuild resolve the import. (I'm. getting :File extension not supported: ../logo.svg
).As per this issue this should be possible if you are able to specify the
loader
option.From the Hugo docs, it is not clear how to specify this. Could we map the options dict to the flag names to be able to access all the options?
Full list of options
The text was updated successfully, but these errors were encountered: