-
Notifications
You must be signed in to change notification settings - Fork 16
Configurable esbuild #41
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
Comments
Hi @Hejtmus I have published a new version (1.2.2) that adds support for this, you can now override any esbuild param, check the readme for details. Let me know if this meets your needs 😃 Thanks James |
Wow, that was quick, good job @yarbsemaj. Thanks for your quick reaction. But I think there is needed one other tweak as apparently it generates cjs code for some parts of code:
I think this is caused by second build, which doesn't apply the override. Also I saw your usage of spread syntax, I'm not sure if that's an intention, but you can use it like this:
|
Sorry, solution I proposed wouldn't fix the warning, as that cjs export is in router's code. For my app I manually replaced it for esm export (which does the trick), but I'm not sure how to accomplish this automatically from esbuild config. |
Hello,
I was just considering using this adapter, but my application uses top level awaits, which is only supported by esmodules. This adapter enforces commonjs, which negatively influences usability.
My suggestion is giving ability to users to override esbuild options, as majority of other adapter does.
Best regards,
Filip.
The text was updated successfully, but these errors were encountered: