vechain-sdk-js icon indicating copy to clipboard operation
vechain-sdk-js copied to clipboard

[Browser] Improve TreeShaking approach for webpack

Open claytonneal opened this issue 9 months ago • 2 comments

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

claytonneal avatar Apr 30 '24 13:04 claytonneal

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.

leszek-vechain avatar Jul 23 '24 15:07 leszek-vechain