Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to resolve vue extension in node_modules? #110

@yetrun

Description

@yetrun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions