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
I am using sucrase to transpile some jest tests and came across a (typescript) file containing a function invocation followed by an export declaration.
Since the export declaration is wrapped into parens during transpilation, it seems the resulting code created a higher order function as it tries to call the result of the invocation with the wrapped export (as there are no semicolons).
I am using sucrase to transpile some jest tests and came across a (typescript) file containing a function invocation followed by an
export
declaration.Since the export declaration is wrapped into parens during transpilation, it seems the resulting code created a higher order function as it tries to call the result of the invocation with the wrapped export (as there are no semicolons).
results in
which would lead to
const data = fn()(({ nested: exports.nested } = data.key))
and fail for a couple of reasons.The text was updated successfully, but these errors were encountered: