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
// prettier-ignoreimport{b,a}from'a'// prettier-ignoreimport{c,d}from'b'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// prettier-ignoreximport{ b, a }from'a';// prettier-ignoreximport{c,d}from'b';
Notice how the { } have spaces inside them?
I think the bug is related to getCodeFromAst and how it should avoid touching these imports, but simultaneously this node is important to restore comments at the top of file. So we have to omit it from nodesToDelete, but somehow also make sure that other imports don't get sorted above it.
If we just avoid "deleting" the original node, it will fall to the bottom of imports with the rest of the "unparsed runtime code".
The text was updated successfully, but these errors were encountered:
Notice how the
{ }
have spaces inside them?I think the bug is related to
getCodeFromAst
and how it should avoid touching these imports, but simultaneously this node is important to restore comments at the top of file. So we have to omit it fromnodesToDelete
, but somehow also make sure that other imports don't get sorted above it.If we just avoid "deleting" the original node, it will fall to the bottom of imports with the rest of the "unparsed runtime code".
The text was updated successfully, but these errors were encountered: