-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 logical assignment operator #715
Comments
I'm confused since support for this was added to esbuild a long time ago: > echo "a ??= b" | esbuild
a ??= b;
> echo "a ??= b" | esbuild --target=es6
a != null ? a : a = b; Your screenshot looks like an error from the TypeScript compiler, not from esbuild. Maybe you have an old version of the TypeScript compiler installed? |
Funnily enough I'm currently toying with a Figma plugin and have been using |
Thanks for the ping @schickling — I've published a new version of |
FWIW @rsms In this particular case you'd probably need to upgrade TS to 4.0+ otherwise the new logical assignment operators won't yet be supported (to my knowledge). |
It seems like logical assignment operators (TC39 stage 4) are currently not yet supported. As they are supported in TypeScript since version 4 (see PR), this means esbuild can't compile applications using this feature resulting in errors like this:
Would be great if support could be added for this feature :)
The text was updated successfully, but these errors were encountered: