Closed jaw52 closed 1 year ago
How about
<script setup lang="ts">
import button from './button.vue'
</script>
<template>
<button>{{ button }}</button>
</template>
How about
<script setup lang="ts"> import button from './button.vue' </script> <template> <button>{{ button }}</button> </template>
This is the effect of the official scaffolding ofvite + vue3
demo: https://stackblitz.com/edit/vitejs-vite-beh2mo?file=src%2FApp.vue
And. This is the effect of running after this commit
Do we need to add more test cases?
Yes, we need more test case.
Include
import button from './button.vue'
import Button from './button.vue'
Is there any work to be done about this PR @xiaoxiangmoe
@xiaoxiangmoe I'm ready to review, bro ^_^
Description
variable
p
will be misinterpreted as a component (Component names in vue avoid using html tag)Linked Issues
This closes https://github.com/antfu/unplugin-vue2-script-setup/issues/133 ,closes https://github.com/antfu/unplugin-vue2-script-setup/issues/135
Additional context