Rollup plugin that removes ES3-incompatible constructs (Object.defineProperty and Object.freeze) from the bundled output. Version 1.1.0 is the latest stable release. It is a lightweight, focused alternative to large transpilers, specifically addressing rollup's __esModule marker and frozen objects for legacy environments.
npm install rollup-plugin-es3Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of the plugin: install, import, and add to rollup plugins array.
Use additional plugins (e.g., rollup-plugin-es5) for broader ES3 compatibility.
Update to v1.0.2+; pass { remove: ['freeze'] } to re-enable.Use explicit option { remove: ['freeze'] } if needed.Ensure plugin is installed and added to rollup plugins array: plugins: [es3()]
Use import es3 from 'rollup-plugin-es3' or const es3 = require('rollup-plugin-es3').defaultNo dependency data recorded yet.