Skip to content

The require() code written in the .vue file does not work properly #66

@eleven-net-cn

Description

@eleven-net-cn

When I write the require code in the .vue file, it prompts that require is not defined.

The following location was traced in the source code:

Image

Image

In vite, the extensions parameter is not usually set, and the default value does not include .vue files

Is this a bug or a behavior that suits expectations?

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