Skip to content

Disallow /esm/*.js for isValidNodeImport #23

@pi0

Description

@pi0

Reference: nuxt/framework#1949

Libraries like date-fns (as of 2.25.0) using this contention leading to native ESM incompatibility (https://unpkg.com/browse/date-fns@2.25.0/esm/format/)

Using a regex like /\/esm\/.*\.js$/ we can exclude it but we should probably still take type: module check into account to avoid false-positive detections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions