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

How to resolve vue extension in node_modules? #110

Open
yetrun opened this issue Feb 23, 2023 · 2 comments
Open

How to resolve vue extension in node_modules? #110

yetrun opened this issue Feb 23, 2023 · 2 comments

Comments

@yetrun
Copy link

yetrun commented Feb 23, 2023

Describe the question

Vite have provided resolve.extensions to omit the extensions for imports:

{
  resolve: {
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] // .vue added
  }
}

It works for project code but not packages in node_modules. I have searched for Google and no solutions found, so I am seeking for help in such this community.

@yetrun
Copy link
Author

yetrun commented Feb 23, 2023

Add a complement, you can reproduce the issue at:

https://github.com/yetrun/report-vite-extension-bug-for-node_modules

@Chieffo2021
Copy link
Collaborator

duplicate vitejs/vite#12187

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