roly is a JavaScript bundler that acts as a wrapper around Rollup, simplifying multi-format bundle generation (CommonJS, UMD, ES modules) and minification via CLI or package.json config. Current stable version is 1.1.1, last released in 2018 with no recent updates. It differentiates from raw Rollup by allowing format-specific compression and plugin configuration through a single command, avoiding multiple config files. However, it is effectively abandonware—no commits since 2018, poor documentation, and low adoption. For production use, prefer Rollup or Vite.
npm install rolyVerified import paths — ran on the pinned version, not inferred.
Demonstrates a minimal roly setup: install, create entry file, build default CJS bundle, then build multiple formats with UMD compression.
Migrate to Rollup (https://rollupjs.org) or Vite (https://vitejs.dev)
If you need external dependencies in CJS/ES, either rely on consumer bundler or use Rollup's externals option via roly's rollup config.
Use --compress umd explicitly. For other formats, minify separately using tools like terser.
Use commas: --format cjs,umd,es. Alternatively, use --format cjs --format umd --format es (individual flags).
npm install rollup --save-dev
Use import or upgrade Node to >=14. If using CommonJS, use dynamic import: const roly = await import('roly');Use --format cjs,umd,es (comma-separated) or --format cjs --format umd --format es (multiple flags).