Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

ESM packages that don't specify "module" #9

@web-padawan

Description

@web-padawan

Now when Node has support for modules, some packages started to care about ESM version.

It turns out the "module" field isn't always the best solution, because of webpack.
See for example this PR where it was decided to remove it: markedjs/marked#1571 (comment)

Also I found this article relevant: https://2ality.com/2019/10/hybrid-npm-packages.html

@FredKSchott would you consider adding more ways to discover ESM packages?

This is important for me as a library maintainer: I was hoping to get @pika/web and CDN support when upgrading to ESM version of dependency, but so far I'm out of luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions