digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.66k stars 195 forks source link

Use relative `browser` entry #429

Closed blakeembrey closed 3 years ago

blakeembrey commented 3 years ago

The browser entries should be relative when replacing files within the current package, otherwise it assumes that you're trying to change a module that doesn't exist and uses the node.js version anyway.

Browser field spec: https://github.com/defunctzombie/package-browser-field-spec. This should fix bundling for browsers, currently I get stuck when resolving core-js.

davidlehn commented 3 years ago

This had some conflicts with the other commits, but the fix was applied. Thanks.