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.