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

Resolve aliases correctly using options.alias #9

Open
davestewart opened this issue May 17, 2022 · 0 comments
Open

Resolve aliases correctly using options.alias #9

davestewart opened this issue May 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@davestewart
Copy link
Owner

Background

In the getExternal() code, there's a naive regexp that resolves "common" src aliases:

Additionally, this has lead to a poor workaround to handle scoped NPM packages:

https://github.com/davestewart/nuxt-areas/blob/main/src/services/areas.js#L145-L156

It would be better to use Nuxt's built-in alias property to resolve aliases, then scoped packages can be handled normally:

https://nuxtjs.org/docs/configuration-glossary/configuration-alias/

Proposal

Check for all uses of aliases, and implement an appropriate solution.

@davestewart davestewart added the enhancement New feature or request label May 17, 2022
@davestewart davestewart self-assigned this May 17, 2022
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

1 participant