unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue

Home Page:https://www.npmjs.com/package/unplugin-vue-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto import lit components

wangjiecamen opened this issue · comments

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

commented

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