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

Use alias when importing components within src #216

Open
evenstensberg opened this issue Jan 3, 2023 · 1 comment
Open

Use alias when importing components within src #216

evenstensberg opened this issue Jan 3, 2023 · 1 comment

Comments

@evenstensberg
Copy link

Some of the components generated through the CLI could be imported like @/components/myComponent.vue instead of using relative import paths.

@haoqunjiang
Copy link
Member

Here are all the occurrences of such import paths:
image

In these cases, I think . or .. are more readable than @.
IMHO, I prefer readability over consistency (see also #45 (comment)).
And if I'm not mistaken, relative paths may have better tooling support than aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants