nuxt / module-builder

Complete solution to build and ship Nuxt modules.
MIT License
224 stars 24 forks source link

After build, lang=“ts" for script tag is missing, the intellisense for component is not available #239

Open kongku opened 6 months ago

kongku commented 6 months ago

the sfc use options style with typescript, as follow:

<script lang="ts">
export default defineComponent({
  pros:{
     foo:{
       type: String,
        default: "bar"
     }
  }
})
</script>

after build:

<script>
export default defineComponent({
  pros:{
     foo:{
       type: String,
        default: "bar"
     }
  }
})
</script>