This post states that my treeshaking is working correctly and this is the best way to get the smallest bundle size. The bundle size in the post is 1.9MB which is close to my final js file (2.2MB). I guess the rollup visualizer just states wrong file sizes or I just dont understand the visualization
Im still confused why some packages are in the bundle that are never used like Audio or Bones.