davesnx / styled-ppx

Type-safe styled components for ReScript, Melange and native with type-safe CSS
https://styled-ppx.vercel.app
BSD 2-Clause "Simplified" License
402 stars 33 forks source link

Transform with variable handle unsafe interpolation #471

Closed zakybilfagih closed 6 months ago

zakybilfagih commented 6 months ago

Fixes #412

  1. Combinator.combine_xor will match the longest rule, so although Standard.interpolation matches the value, it will select the parser rule. Added Combinator.combine_xor_first, which will select the first successful rule.
  2. Pass the interpolation expression using Unsafe_interpolation exn so we can render them at render_when_unsupported_features
vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **styled-ppx** | ⬜️ Ignored ([Inspect](https://vercel.com/david-sanchos-projects-8c534635/styled-ppx/Eugixd4qhLvb6TTPaDXshEeH9dbw)) | [Visit Preview](https://styled-ppx-git-fork-zaky-408759-david-sanchos-projects-8c534635.vercel.app) | | May 28, 2024 9:15am |