Rollup tree shaking behavior with sideEffects property in nested dependencies
When bundling a JavaScript library using Rollup, the effectiveness of dead-code elimination depends heavily on the sideEffects property within the package.json . While Rollup performs static analysis on ES modules to identify unused exports, the presence of global mutations or imported CSS can cause the bundler to retain unnecessary code. The uncertainty ari