Skip to content

esModule option stopped working in version 14 #1172

Closed
@bendytree

Description

@bendytree

Version

14.1.0

Reproduction link

https://gist.github.com/bendytree/ea50ef622936f38169a17f252c70b775

Steps to reproduce

require a *.vue file with esModule: false

What is expected?

The component should be available at:

const component = require("./component.vue");

What is actually happening?

The component is available at:

const component = require("./component.vue").default;

Looks like esModule became true by default in v13.

In v14 it was removed from the code base.

The docs still show it as an option.

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