Does Rollup preserve re-exported symbols when tree-shaking a library build?
Goal is to configure a Rollup library build that maximizes downstream tree-shaking while keeping the declared public API intact. Static tree-shaking relies on ES module syntax and accurate sideEffects metadata, and code splitting is driven by dynamic import() with manualChunks shaping. Output format choice between es and cjs changes interop helpers and expor