You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this! It looks like the precedence of template literal tags is incorrect. I just fixed the bug and I will do a release later today.
Hi! First of all, thanks for this amazing tool!
There might be an issue with async template literals tags (such as https://github.com/porsager/postgres):
is built as:
The parenthesis basically break the code and the whole thing just returns a
Promise
. instead of the actual result.I've tried v0.6.30 and v0.6.32. I'm using the Rollup plugin https://github.com/egoist/rollup-plugin-esbuild with TS target
es2018
-- same happens fores2016
but withyield
instead ofawait
.Edit
This works:
builds as:
However, formatters such as Prettier will likely remove those parenthesis before esbuild.
The text was updated successfully, but these errors were encountered: