jantimon / next-yak

a streamlined CSS-in-JS solution tailor-made for Next.js, seamlessly combining the expressive power of styled-components syntax with efficient build-time extraction and minimal runtime footprint, ensuring optimal performance and easy integration with existing atomic CSS frameworks like Tailwind CSS
https://yak.js.org
118 stars 4 forks source link

add error messages for simple cases #45

Closed jantimon closed 9 months ago

jantimon commented 9 months ago

This PR detects very simple error cases:

styled.button`
  &:focus { ${myMixn} }
`

it detects the mistake by checking if the expression is a variable

This will not detect errors from inlined arrow functions:

styled.button`
  &:focus { ${() => myMixn} }
`
vercel[bot] commented 9 months ago

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

Name Status Preview Comments Updated (UTC)
yacijs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2024 2:51pm
codspeed-hq[bot] commented 9 months ago

CodSpeed Performance Report

Merging #45 will not alter performance

Comparing feature/error-messages (ce6e00a) with main (840b2a5)

Summary

✅ 2 untouched benchmarks