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

Custom composables auto import? #280

Open
milesingrams opened this issue Jan 19, 2022 · 1 comment
Open

Custom composables auto import? #280

milesingrams opened this issue Jan 19, 2022 · 1 comment

Comments

@milesingrams
Copy link

milesingrams commented Jan 19, 2022

This is an awesome template, very straightforward to use!

I was wondering why the composables folder doesn't auto import like vue core and vueuse? It would be really cool if simply defining an export in any file in the composables folder would allow it to be used anywhere. I know Nuxt 3 does this but I moved away from using Nuxt since the beta version has too many bugs to work with currently. This template and tooling on the other hand works beautifully.

Also I noticed that if I forgot to import a custom composable it seems to silently fail. I get no console error.

No rush to answer! Thank you for such an amazing project and set of dev tools.

@markthree
Copy link
Contributor

you can use 👉 vite-auto-import-resolvers

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

No branches or pull requests

2 participants