pub fn script_of(path: &str, text: &str) -> StringExpand description
The code of a file as TS: the file itself, or only the <script> blocks of a
.vue/.svelte/.astro component. Text outside scripts becomes blank lines so
reported line numbers stay right.