unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.77k stars 349 forks source link

Auto import lit components #709

Open wangjiecamen opened 11 months ago

wangjiecamen commented 11 months ago

Clear and concise description of the problem

Currently I need to import lit component explicitly so that it can be used in vue

<script setup lang="ts">
import "package/es/button";
</script>

<template>
<custom-button>click</custom-button>
</template>

Suggested solution

support to auto import lit components

Alternative

No response

Additional context

No response

Validations

thewebkid commented 8 months ago

This seems to overwrite the vue compilerOptions: isCustomElement setting. Have you found a workaround for this yet?