We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Shortest test case:
0?([]):1;
Test:
% npx esbuild@latest test.ts --outfile=test.js --platform=browser --target=es5 ✘ [ERROR] Transforming destructuring to the configured target environment ("es5") is not supported yet test.ts:1:3: 1 │ 0?([]):1; ╵ ^
The carat is pointing to the open square bracket
The error is elicited by the ternary expression when the truthy part is a parenthesized array, irrespective of the number of elements.
The text was updated successfully, but these errors were encountered:
https://github.com/evanw/esbuild/blob/master/internal/js_parser/js_parser.go#L2655 esubild might mistake ([]): or({}): as arrow function
([]):
({}):
Sorry, something went wrong.
a2789bf
No branches or pull requests
Shortest test case:
Test:
The carat is pointing to the open square bracket
The error is elicited by the ternary expression when the truthy part is a parenthesized array, irrespective of the number of elements.
The text was updated successfully, but these errors were encountered: