Cypress preprocessor for bundling JavaScript via rollup
Requires Node version 6.5.0 or above.
npm install --save-dev @cypress/rollup-preprocessorIn your project's plugins file:
const rollup = require('@cypress/rollup-preprocessor')
module.exports = (on) => {
on('file:preprocessor', rollup())
}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))
}Run all tests once:
npm testRun tests in watch mode:
npm run test-watchThis project is licensed under the terms of the MIT license.