Skip to content

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jul 28, 2025

close: #12556

Fixed an issue where spaces before template literal interpolations were incorrectly removed during CSS minification in the styled-components plugin.

The fix ensures spaces are preserved (e.g., padding: 0 ${PADDING}px stays as padding:0 ${PADDING}px instead of becoming padding:0${PADDING}px).

@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-bug Category - Bug labels Jul 28, 2025
Copy link
Member Author

Dunqing commented Jul 28, 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.

@Dunqing Dunqing force-pushed the 07-28-fix_transformer_preserve_whitespace_before_interpolations_in_styled-components_minification branch from 2aedf1f to 338b9c6 Compare July 28, 2025 08:39
@Dunqing Dunqing changed the title fix(transformer): preserve whitespace before interpolations in styled-components minification fix(transformer/styled-components): preserve whitespace before interpolations in styled-components minification Jul 28, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 28, 2025

CodSpeed Instrumentation Performance Report

Merging #12558 will not alter performance

Comparing 07-28-fix_transformer_preserve_whitespace_before_interpolations_in_styled-components_minification (2f66dd2) with main (3cdac4c)

Summary

✅ 34 untouched benchmarks

@Dunqing Dunqing marked this pull request as ready for review July 28, 2025 08:40
@Dunqing Dunqing requested a review from overlookmotel as a code owner July 28, 2025 08:40
@Dunqing Dunqing changed the title fix(transformer/styled-components): preserve whitespace before interpolations in styled-components minification fix(transformer/styled-components): preserve whitespace before interpolations in minification Jul 28, 2025
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jul 28, 2025
Copy link
Member

Boshen commented Jul 28, 2025

Merge activity

…olations in minification (#12558)

close: #12556

Fixed an issue where spaces before template literal interpolations were incorrectly removed during CSS minification in the styled-components plugin.

The fix ensures spaces are preserved (e.g., `padding: 0 ${PADDING}px` stays as `padding:0 ${PADDING}px` instead of becoming `padding:0${PADDING}px`).
@graphite-app graphite-app bot force-pushed the 07-28-fix_transformer_preserve_whitespace_before_interpolations_in_styled-components_minification branch from 338b9c6 to 2f66dd2 Compare July 28, 2025 13:34
@graphite-app graphite-app bot merged commit 2f66dd2 into main Jul 28, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 07-28-fix_transformer_preserve_whitespace_before_interpolations_in_styled-components_minification branch July 28, 2025 13:41
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 28, 2025
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.

transformer(plugins/styledComponents): whitespace before interpolation is removed incorrectly

3 participants