vechain / vechain-sdk-js

The official JavaScript SDK for VeChain.
24 stars 9 forks source link

[Browser] Improve TreeShaking approach for webpack #834

Open claytonneal opened 4 months ago

claytonneal commented 4 months ago

Objective is to review the output webpack js file size for browser users This could be optimised by looking at how TreeShaking works and what exports we have Ideally if a browser app is just doing minimal operations, the output js file should be small

leszek-vechain commented 1 month ago

This is webpack approach to tree shaking, not sure if we are using it:

https://webpack.js.org/guides/tree-shaking/

There is a couple of options we can set there.