Skip to content

fix(transform/styled-components): fix spans of quasis when some quasis removed#12240

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed
Jul 13, 2025
Merged

fix(transform/styled-components): fix spans of quasis when some quasis removed#12240
graphite-app[bot] merged 1 commit intomainfrom
07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 12, 2025

In CSS minification:

Input:

styled.div`color: /* ${c} */ blue`
//         ^^^^^^^^^^    ^^^^^^^^ spans of `quasis[0]` and `quasis[1]`

Minified:

styled.div`color:blue`

The one remaining quasi needs to have span which covers both original quasis:

styled.div`color: /* ${c} */ blue`
//         ^^^^^^^^^^^^^^^^^^^^^^

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

overlookmotel commented Jul 12, 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.

@overlookmotel overlookmotel force-pushed the 07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed branch from 06c8e62 to 8152fe7 Compare July 12, 2025 13:46
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 12, 2025

CodSpeed Instrumentation Performance Report

Merging #12240 will not alter performance

Comparing 07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed (fb76e3c) with main (9b14fbc)

Summary

✅ 34 untouched benchmarks

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Jul 13, 2025
Copy link
Member

Dunqing commented Jul 13, 2025

Merge activity

…s removed (#12240)

In CSS minification:

Input:

```js
styled.div`color: /* ${c} */ blue`
//         ^^^^^^^^^^    ^^^^^^^^ spans of `quasis[0]` and `quasis[1]`
```

Minified:

```js
styled.div`color:blue`
```

The one remaining quasi needs to have span which covers both original quasis:

```js
styled.div`color: /* ${c} */ blue`
//         ^^^^^^^^^^^^^^^^^^^^^^
```
@graphite-app graphite-app bot force-pushed the 07-11-perf_transformer_styled-components_simplify_css_minification branch from f933d20 to 8e13e2a Compare July 13, 2025 18:20
@graphite-app graphite-app bot force-pushed the 07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed branch from 8152fe7 to fb76e3c Compare July 13, 2025 18:21
Base automatically changed from 07-11-perf_transformer_styled-components_simplify_css_minification to main July 13, 2025 18:28
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 13, 2025
@graphite-app graphite-app bot merged commit fb76e3c into main Jul 13, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 07-12-fix_transform_styled-components_fix_spans_of_quasis_when_some_quasis_removed branch July 13, 2025 18:31
graphite-app bot pushed a commit that referenced this pull request Jul 14, 2025
#12240 addressed this. I should have removed the comment in that PR.
graphite-app bot pushed a commit that referenced this pull request Jul 14, 2025
#12240 addressed this. I should have removed the comment in that PR.
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.

2 participants