starknet.js icon indicating copy to clipboard operation
starknet.js copied to clipboard

Enable tree shaking

Open tarrencev opened this issue 9 months ago • 1 comments

It would be great if we could enable tree shaking of the starknet.js library for the next version.

tarrencev avatar Feb 13 '25 16:02 tarrencev

Tree shaking is enabled in the project, but it's only fully effective for your ESM (.mjs) builds. When another project imports your library as an ES module (using a .mjs file), its bundler will be able to tree-shake any unused exports from the library, leading to a smaller final bundle size. Is there something I'm missing?

tabaktoni avatar Jun 18 '25 07:06 tabaktoni