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

Special query for custom Elements #214

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
Labels
enhancement New feature or request

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

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

Successfully merging a pull request may close this issue.

2 participants