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

Add vue extension when importing components #66

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

JuanKman94
Copy link
Contributor

When working with Vue 3 with Vite instead of webpack, one can import the components from source but it breaks because the imports don't include the file extension.

With these changes, one can:

<template>
  ...
</template>

<script>
import VSwatches from 'vue-swatches/src/VSwatches.vue'

...
</script>

And use the swatches

@saintplay saintplay merged commit 405e028 into saintplay:master Mar 21, 2021
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 this pull request may close these issues.

2 participants