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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Import vue directives #334

Open
1 task done
manniL opened this issue Mar 28, 2024 · 2 comments
Open
1 task done

Auto-Import vue directives #334

manniL opened this issue Mar 28, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@manniL
Copy link
Member

manniL commented Mar 28, 2024

Describe the feature

Hey all 馃憢馃徎

It would be great if Vue directives could be auto-imported when being used.

Example code which should "magically work":

In the component:

<template>
  <div v-my-directive>Hey</div>
</template>

Auto-imported file:

export const vMyDirective = {/*...*/}

Additional information

  • Would you be willing to help implement this feature?
@antfu
Copy link
Member

antfu commented Mar 28, 2024

Sounds good if you managed to implement it :)

@manniL
Copy link
Member Author

manniL commented Mar 28, 2024

I'll look into how and might ping you if I have questions 馃憖

@manniL manniL added the enhancement New feature or request label Mar 28, 2024
@manniL manniL self-assigned this Mar 28, 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

2 participants