Closed FelixMohr closed 3 weeks ago
Set the value of option "sideEffects" in package.json to false. Same as what ethers.js does: https://github.com/ethers-io/ethers.js/blob/main/package.json
false
ethers.js
There are bundled frontend applications that use zksync-ethers. This option will enable tree shaking. Bundles can be organized more efficiently, and in most cases less code will be fetched and parsed by clients, so performance can be improved.
Find more about the option here: https://webpack.js.org/guides/tree-shaking/#clarifying-tree-shaking-and-sideeffects
Please fix failing jobs. Once you do that we can merge this
What :computer:
Set the value of option "sideEffects" in package.json to
false
. Same as whatethers.js
does: https://github.com/ethers-io/ethers.js/blob/main/package.jsonWhy :hand:
There are bundled frontend applications that use zksync-ethers. This option will enable tree shaking. Bundles can be organized more efficiently, and in most cases less code will be fetched and parsed by clients, so performance can be improved.
Evidence :camera:
Find more about the option here: https://webpack.js.org/guides/tree-shaking/#clarifying-tree-shaking-and-sideeffects