Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve support for auto mapping / loading components #3

Open
thescientist13 opened this issue May 23, 2024 · 0 comments
Open

improve support for auto mapping / loading components #3

thescientist13 opened this issue May 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@thescientist13
Copy link
Member

Currently the integration assumes that for a component tag name like this

<x-greeting></x-greeting>

It will assume that there is a corresponding file in a components directory, e.g.

src/
  components
    greeting.js

Ideally, we should be able to use some sort of Astro / Vite internals to find the source of these components, since they would need to be in the head anyway, e.g.

<script src="../components/greeting.js"></script>
@thescientist13 thescientist13 added the enhancement New feature or request label May 23, 2024
@thescientist13 thescientist13 changed the title improve support for auto mapping components improve support for auto mapping / loading components May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant