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.06k stars 51 forks source link

It would be nice if twoslash-cli parses defaultCompilerOptions #182

Open vilicvane opened 1 year ago

vilicvane commented 1 year ago

Took me some time to realize that I have to specify the actual enum value to make the defaultCompilerOptions work:

<!-- twoslash: {
  defaultCompilerOptions: {
    moduleResolution: 99 // NodeNext
  }
} -->

Search terms:

orta commented 1 year ago

Yeah, that makes sense 👍🏻