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
does produce wrong mappings. When the string passed to update or overwrite ends with a new line, the mappings will contain two entries for column zero. This happens because in #261 the loop does not bail if the last line is empty, filling two lines with the same mapping.
This is currently blocking Svelte language tools from bumping magic-string to the latest version.
The text was updated successfully, but these errors were encountered:
dummdidumm
added a commit
to dummdidumm/magic-string
that referenced
this issue
Feb 28, 2024
When the string passed to update or overwrite ends with a new line, the mappings will contain two entries for column zero. This happens because the loop does not bail if the last line is empty, filling two lines with the same mapping. This commit fixes that.
FixesRich-Harris#273
does produce wrong mappings. When the string passed to
update
oroverwrite
ends with a new line, the mappings will contain two entries for column zero. This happens because in #261 the loop does not bail if the last line is empty, filling two lines with the same mapping.This is currently blocking Svelte language tools from bumping
magic-string
to the latest version.The text was updated successfully, but these errors were encountered: