theKashey / used-styles

📝All the critical styles you've used to render a page.
MIT License
138 stars 10 forks source link

Add APIs to support serializable lookup table #67

Closed AlexandrHoroshih closed 5 months ago

AlexandrHoroshih commented 5 months ago

Closes #66 and also probably closes #40

This PR adds two new APIs to properly allow for a serialization of the styles lookup

AlexandrHoroshih commented 5 months ago

Hello @theKashey !

I could not explicitly add you to reviewers of this PR (Github won't allow that for some reason), so i will just tag you then 😅

theKashey commented 5 months ago

Great job👍 I'll handle the release during weekend.

The only missing moment is to put fs-based discovery into separate entrypoint and that would handle case for #40

theKashey commented 5 months ago

Published, but as a part of v3 with a breaking change - discoverProjectStyles should be now imported from used-styles/node