Achieving Perfect Tree-Shaking

Hopefully a non silly question for the maintainers… how did you achieve perfect tree-shaking?

I’ve inspected the source code thoroughly and copied everything I can, but I’m still getting excess code when I consume my personal utils side-project.

Adding sideEffects: [] to package.json helped a bit but didn’t eliminate all of it. Does the solution have something to do with the folders in the top of each module with only package.json inside?

Thanks for any advice 😅
Was this page helpful?