A Cypress preprocessor that bundles JavaScript test files using Rollup. Version 1.2.0, released 2022-06-18, is the latest stable release. The package is maintained with semantic versioning; breaking changes are documented in changelogs. It supports Cypress >=10 (ESM config) and <=9 (CJS config). Unlike alternatives like cy-rollup, this package closely follows the official Cypress preprocessor API and supports full Rollup input/output options, TypeScript configs, and watch mode. It requires Rollup 2.x as a peer dependency and ships TypeScript type definitions.
npm install cypress-rollup-preprocessorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the preprocessor with Cypress >=10, including default usage and custom Rollup options.
Replace `rollupOptions` with `inputOptions` and `outputOptions` separately. Example: rollupPreprocessor({ inputOptions, outputOptions })Migrate to Cypress >=10 and use ESM syntax: import rollupPreprocessor from 'cypress-rollup-preprocessor'
Use `import rollupPreprocessor from 'cypress-rollup-preprocessor'` with esModuleInterop, or use `const rollupPreprocessor = require('cypress-rollup-preprocessor')` in CJS.Install rollup@2.x as a peer dependency: npm install rollup@^2.0.0 --save-dev
Run `npm install cypress-rollup-preprocessor rollup@^2.0.0 --save-dev`
Use `rollupPreprocessor({ inputOptions, outputOptions })` instead of `rollupPreprocessor({ rollupOptions })`Use `import rollupPreprocessor from 'cypress-rollup-preprocessor'` (ESM) or `const rollupPreprocessor = require('cypress-rollup-preprocessor')` (CJS).