Note this would drop support for versions below 11ty/eleventy@3.0.0, therefore I'm not sure if I should create a PR? Otherwise #189 might be a solution, independent of the Eleventy version.
Thanks for sharing that solution. I've made a fork which uses it to support Eleventy 3: @olets/eleventy-plugin-shiki-twoslash. My fork also has the latest Shiki themes and languages.
Loading with deasync breaks in
@11ty/eleventy@3.0.0
. With the new ESM support by Eleventy the plugin could boil down to this:Note this would drop support for versions below
11ty/eleventy@3.0.0
, therefore I'm not sure if I should create a PR? Otherwise #189 might be a solution, independent of the Eleventy version.