Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 29, 2025

The change in approach to whitespace in #13379 means we can remove more escaped line breaks (\r and \n).

Previously when processing \r\n, the next character after \r was seen as \, and therefore a space was unnecessarily inserted.

Now we only look backwards, not forwards, so this problem goes away. We just treat \r and \n like any other whitespace.

Copy link
Member Author

overlookmotel commented Aug 29, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 29, 2025

CodSpeed Instrumentation Performance Report

Merging #13380 will not alter performance

Comparing 08-29-fix_transformer_styled-components_remove_more_escaped_line_breaks_in_css_minification (c900b3e) with main (5a25c06)1

Summary

✅ 38 untouched benchmarks

Footnotes

  1. No successful run was found on main (c900b3e) during the generation of this report, so 5a25c06 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel overlookmotel marked this pull request as ready for review August 29, 2025 03:48
@overlookmotel overlookmotel requested a review from Dunqing as a code owner August 29, 2025 03:48
@overlookmotel overlookmotel force-pushed the 08-29-fix_transformer_styled-components_remove_unnecessary_whitespace_around_block_comments_in_css_minification branch from fe2e345 to dd95896 Compare August 29, 2025 04:15
@overlookmotel overlookmotel force-pushed the 08-29-fix_transformer_styled-components_remove_more_escaped_line_breaks_in_css_minification branch from 17636b0 to 0a54e8a Compare August 29, 2025 04:15
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
Copy link
Member

Boshen commented Aug 29, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 08-29-fix_transformer_styled-components_remove_unnecessary_whitespace_around_block_comments_in_css_minification branch from dd95896 to 1cf9b20 Compare August 29, 2025 05:25
graphite-app bot pushed a commit that referenced this pull request Aug 29, 2025
…n CSS minification (#13380)

The change in approach to whitespace in #13379 means we can remove more escaped line breaks (`\r` and `\n`).

Previously when processing `\r\n`, the next character after `\r` was seen as `\`, and therefore a space was unnecessarily inserted.

Now we only look backwards, not forwards, so this problem goes away. We just treat `\r` and `\n` like any other whitespace.
@graphite-app graphite-app bot force-pushed the 08-29-fix_transformer_styled-components_remove_more_escaped_line_breaks_in_css_minification branch from 0a54e8a to 7307483 Compare August 29, 2025 05:25
…n CSS minification (#13380)

The change in approach to whitespace in #13379 means we can remove more escaped line breaks (`\r` and `\n`).

Previously when processing `\r\n`, the next character after `\r` was seen as `\`, and therefore a space was unnecessarily inserted.

Now we only look backwards, not forwards, so this problem goes away. We just treat `\r` and `\n` like any other whitespace.
@graphite-app graphite-app bot force-pushed the 08-29-fix_transformer_styled-components_remove_unnecessary_whitespace_around_block_comments_in_css_minification branch from 1cf9b20 to 6dc5b70 Compare August 29, 2025 05:26
@graphite-app graphite-app bot force-pushed the 08-29-fix_transformer_styled-components_remove_more_escaped_line_breaks_in_css_minification branch from 7307483 to c900b3e Compare August 29, 2025 05:27
Base automatically changed from 08-29-fix_transformer_styled-components_remove_unnecessary_whitespace_around_block_comments_in_css_minification to main August 29, 2025 05:31
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
@graphite-app graphite-app bot merged commit c900b3e into main Aug 29, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 08-29-fix_transformer_styled-components_remove_more_escaped_line_breaks_in_css_minification branch August 29, 2025 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-transformer Area - Transformer / Transpiler C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants