Closed jacoscaz closed 3 years ago
We might address this upstream with https://github.com/comunica/comunica/pull/752 (draft, WIP).
Waiting on https://github.com/DefinitelyTyped/DefinitelyTyped/pull/49123 Merged!
We did end up addressing this upstream. For posterity, we started with comunica
alone but ended up working across both comunica
and sparqlee
.
Waiting on:
comunica
to NPM (expected early next week)Released in v7.0.1-beta.2!
As shown by the following screenshot of Webpack's bundle analyzer, browser-side bundles include a lot of crypto-related code due to
@comunica/actor-abstract-bindings-hash/lib/AbstractFilterHash.js
making use of thecrypto
module of Node.js.By limiting the amount of hashes that can be used to just one or two we could refactor that package to depend on pure-js, npm-based implementations and get rid of almost a third of the bundle size. We could do this either by making a PR to Comunica itself (upstream) or coming up with our own replacement
@comunica/the actor-abstract-bindings-hash
.