Skip to content

Special query for custom Elements #214

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

Open
5 of 6 tasks
ericfennis opened this issue Jul 27, 2023 · 0 comments · May be fixed by #215
Open
5 of 6 tasks

Special query for custom Elements #214

ericfennis opened this issue Jul 27, 2023 · 0 comments · May be fixed by #215

Comments

@ericfennis
Copy link

Related plugins

Description

As a developer, I want to be able to change the behaviour of the vue compiler for Vue components by simply adding a special query to the import.

Currently, it is not possible to have one Vue component as a custom element and a normal Vue component.

Suggested solution

Like the special queries for Assets in Vite, see docs. We could have similar queries for customElement imports without changing the global Vue plugin configurations or changing the file extension.

import Button from './Button.vue?customElement';

// Will import like it is an customElement. Like `button.ce.vue`

Alternative

No response

Additional context

No response

Validations

@ericfennis ericfennis linked a pull request Jul 27, 2023 that will close this issue
9 tasks
@edison1105 edison1105 added enhancement New feature or request and removed enhancement: pending triage labels Sep 24, 2024
@sapphi-red sapphi-red removed the enhancement New feature or request label Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants