A Rollup plugin that transpiles bundled JavaScript output to an older ECMAScript standard (COMPAT) for legacy browser support. Version 0.22.4 is the latest stable release, but the package appears to be in early development with no README and no clear release cadence. Unlike full-featured transpilers like Babel or SWC, this plugin focuses narrowly on output compatibility, potentially offering faster builds for simple transpilation needs. Its key differentiator is being a Rollup-native solution, avoiding extra tooling configuration, though its capabilities and maintenance are uncertain due to lack of documentation. Recommended for experimental use only.
npm install rollup-plugin-compatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic Rollup build configuration using the compat plugin to transpile output for older browsers.
Review source code or test extensively before using in production.
Pin to exact version and expect breaking changes on update.
Consider alternatives like @rollup/plugin-babel for production.
Run `npm install rollup-plugin-compat --save-dev`
Use `import { compat } from 'rollup-plugin-compat'` or check exportsEnsure `compat()` is called (not just reference) in plugins array