shikijs / twoslash

You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
https://shikijs.github.io/twoslash/
MIT License
1.08k stars 54 forks source link

fix: cache promises instead of highlighters #52

Closed frencojobs closed 3 years ago

frencojobs commented 3 years ago

Closes #35

frencojobs commented 3 years ago

This fix makes it take only 30 seconds to build 123 files with a single simple twoslash code block which the current version fails to do at 80 files max.

orta commented 3 years ago

Looks like a great solution - well done!

orta commented 3 years ago

Deployed as 1.5.0