Subscribe on changes!

when we use <script setup>, add 'name' property to define the component's name?

avatar
Sep 14th 2021

What problem does this feature solve?

<script lang="ts">
export default {
  name: "Name"
}
</script>
<script lang="ts" setup>
// code
</script>

What does the proposed API look like?

<script lang="ts" setup name="Name">
// code
</script>