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
108 stars 2 forks source link

Typescript loaders #82

Closed Mad-Kat closed 5 months ago

Mad-Kat commented 5 months ago

This PR adds the ability to import loaders as ESM & CJS.

As there is already a build step for all the other code, adding a build step for loaders doesn't add much overhead.

All built code will be generated in /dist/* to have a better distinction between built code and code one can manually change.

vercel[bot] commented 5 months ago

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

Name Status Preview Comments Updated (UTC)
yacijs ❌ Failed (Inspect) Mar 26, 2024 2:49pm
jantimon commented 5 months ago

the idea behind not compiling nodejs code was easier debugging

but I guess the advantages with one dist folder and not to mix esm / cjs help are way stronger