[all] replace package.json#browsers with package.json#exports.browser #4543
Labels
needs:code-contribution
This feature/bug is ready to implement
never-stale
triage:accepted
This feature has been accepted
type:feature
A feature with no sub-issues to address
up-for-grabs
Good for taking. Extra help will be provided by maintainers
We are currently using the
browser
property of thepackage.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.The text was updated successfully, but these errors were encountered: