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
In a project configured with rsbuild, CSS styles defined via styled-components fail to handle Unicode escape sequences (e.g., \e67f) consistently between the development and production environments.
Observed behavior:
Defined: content: "\e67f";
Development environment: The sequence is incorrectly parsed as content: "e67f"; (escape sequence is lost).
Production environment: The sequence is correctly parsed as content: "\e67f"; (expected behavior).
When defined as the complete Unicode code point (e.g., content: "\ue67f";):
Development environment: Displays correctly.
Production environment: Displays incorrectly.
When defined in a LESS file as content: "\e67f:
Both development and production environments parse and display the style correctly.
Version
Details
In a project configured with rsbuild, CSS styles defined via styled-components fail to handle Unicode escape sequences (e.g., \e67f) consistently between the development and production environments.
Observed behavior:
Defined: content: "\e67f";
Development environment: The sequence is incorrectly parsed as content: "e67f"; (escape sequence is lost).
Production environment: The sequence is correctly parsed as content: "\e67f"; (expected behavior).
When defined as the complete Unicode code point (e.g., content: "\ue67f";):
Development environment: Displays correctly.
Production environment: Displays incorrectly.
When defined in a LESS file as content: "\e67f:
Reproduce link
https://github.com/wendy0512/rsbuild-unicode-repro
Reproduce Steps
1.npm i
2.npm run start
3.npm run build
The text was updated successfully, but these errors were encountered: