digitalbazaar / jsonld.js

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

Remove manually defining browser global for export. #445

Closed dmitrizagidulin closed 3 years ago

dmitrizagidulin commented 3 years ago

Removes global usage (this is messing up downstream webpack and karma usage), no longer manually define the JsonLdProcessor global for browsers (this is left for bundlers to do).

Also fixes issue https://github.com/digitalbazaar/jsonld.js/issues/267, and the problem PR https://github.com/digitalbazaar/jsonld.js/pull/311 is trying to address.

dmitrizagidulin commented 3 years ago

@davidlehn - can you help resolve the webpack and browserify tests?

davidlehn commented 3 years ago

Hopefully https://github.com/digitalbazaar/jsonld.js/pull/447 addresses this for other projects that were having difficulty.