unplugin-vue-router icon indicating copy to clipboard operation
unplugin-vue-router copied to clipboard

Handle TypeScript syntax within `definePage()`

Open posva opened this issue 1 year ago • 2 comments

Using TS syntax will produce Syntax errors:

<script setup>
definePage({
  alias: 'thing' as string,
})
</script>

Not sure how to support this but I think it should be related to adding ?vue&type... query to import. TODO: check with the vite vue plugin

posva avatar Aug 29 '22 16:08 posva

@posva Could you take a look at pr for this issue, please https://github.com/posva/unplugin-vue-router/pull/238

undead-voron avatar Sep 28 '23 15:09 undead-voron

@posva Do you have any updates?

Heunsig avatar Mar 19 '24 08:03 Heunsig

@posva, joining Heunsig's question, is there any update?

tynliuk avatar May 06 '24 09:05 tynliuk