Skip to content

[all] replace package.json#browsers with package.json#exports.browser #4543

@dyladan

Description

@dyladan

We are currently using the browser property of the package.json in order to have browser overrides for node-specific functions. This field is actually not even specified by npm/node, but by webpack. As pointed out by @SimenB in #3723 (reply in thread) this causes issues with at least Jest and likely other build tools.

We should switch to use the more modern conditional exports with a browser stanza in order to ensure greater compatibility with more tools and runtimes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs:code-contributionThis feature/bug is ready to implementnever-staletriage:acceptedThis feature has been acceptedtype:featureA feature with no sub-issues to addressup-for-grabsGood for taking. Extra help will be provided by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions