You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having import Web3Quorum from "web3js-quorum"; increases bundle size by a lot.
In my project, before importing it, bundle size was 396.68 KiB / gzip: 115.09 KiB.
After importing it, bundle size increased to 1649.67 KiB / gzip: 472.42 KiB.
System information
Client type: Besu
Bundler: Rollup
Expected behaviour
Bundle size shouldn't increase that much.
Actual behaviour
Bundle size increases by ~1.2MB uncompressed.
Steps to reproduce the behaviour
In any example project, try building it with and without importing web3-quorum.
The text was updated successfully, but these errors were encountered:
I assume the issue is that you are publishing raw source, instead of bundling it (cjs/umd/esm)?
If that's true, I guess this is also why I'm having issues with using web3js-quorum after bundling everything:
Uncaught TypeError: Object prototype may only be an Object or null: undefined
at Function.create (<anonymous>)
at privateSubscription.js:234:40
at index.fed4010a.js:1:637
at main.tsx:10:1
Having
import Web3Quorum from "web3js-quorum";
increases bundle size by a lot.In my project, before importing it, bundle size was
396.68 KiB / gzip: 115.09 KiB
.After importing it, bundle size increased to
1649.67 KiB / gzip: 472.42 KiB
.System information
Client type: Besu
Bundler: Rollup
Expected behaviour
Bundle size shouldn't increase that much.
Actual behaviour
Bundle size increases by ~1.2MB uncompressed.
Steps to reproduce the behaviour
In any example project, try building it with and without importing web3-quorum.
The text was updated successfully, but these errors were encountered: