Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 932 Bytes

README.md

File metadata and controls

55 lines (35 loc) · 932 Bytes

Cypress Rollup Preprocessor

Cypress preprocessor for bundling JavaScript via rollup

Installation

Requires Node version 6.5.0 or above.

npm install --save-dev @cypress/rollup-preprocessor

Usage

In your project's plugins file:

const rollup = require('@cypress/rollup-preprocessor')

module.exports = (on) => {
  on('file:preprocessor', rollup())
}

Options

Pass in options as the second argument to rollup:

const rollup = require('@cypress/rollup-preprocessor')
module.exports = (on) => {
  config: require('../../rollup.config.js')
  on('file:preprocessor', rollup(config))
}

Contributing

Run all tests once:

npm test

Run tests in watch mode:

npm run test-watch

License

This project is licensed under the terms of the MIT license.