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
As the output will be very verbose with many chained statements, this is undesirable. When removing the outer callExpression so that the outer expression is a memberExpression, no newlines seem to be inserted.
What is exceptional is that each statement separately will not generate a newline when used with babel-generate to output each statement, however, joining them with insertBefore, insertAfter, or replaceWithMultiple with or without the use of a BlockStatement will cause them to appear.
When transforming
$("a").hide().hide().hide().hide()
, extra newlines will be inserted between each output statement, resulting in the following:As the output will be very verbose with many chained statements, this is undesirable. When removing the outer callExpression so that the outer expression is a memberExpression, no newlines seem to be inserted.
Possible
babel-core
bug. See related issue.What is exceptional is that each statement separately will not generate a newline when used with
babel-generate
to output each statement, however, joining them withinsertBefore
,insertAfter
, orreplaceWithMultiple
with or without the use of aBlockStatement
will cause them to appear.The text was updated successfully, but these errors were encountered: