Building Dual ESM and CJS Bundles with Rollup's Multi‑Output
Learn how Rollup's multi‑output lets you build ES module and CommonJS bundles from a single input, with a worked example, trade‑offs, and verification steps.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how Rollup's multi‑output lets you build ES module and CommonJS bundles from a single input, with a worked example, trade‑offs, and verification steps.
Integration Boundary Swiper v9+ ships as an ES‑module only distribution, removing the CommonJS/UMD entry points that v8 and earlier exposed. The swiper/react wrapper, which has existed since v8, is itself an ES module and therefore inherits the same constraint. This change forces toolchains that default to CommonJS – such as Jest’s default configuration or o