Subscribe on changes!

Is it possible to create a function in script setup to name the component like 'defineName'

avatar
Mar 11th 2022

What problem does this feature solve?

It looks strange X﹏X

<script lang="ts">
export default { name: 'XXX' }
</script>

<script setup lang="ts">
// do something ...
</script>

What does the proposed API look like?