@bahmutov/cy-rollup
v1.1.3@bahmutov/cy-rollup
Implementation copied from bahmutov/rolling-task
Use
// cypress/plugins/index.js
const rollupPreprocessor = require('@bahmutov/cy-rollup')
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
const options = {
// Provide an alternative rollup config file.
// The default is rollup.config.js at the project root.
configFile: "cypress/rollup-test.config.js"
}
on('file:preprocessor', rollupPreprocessor(options))
}
Debugging
Run with environment variable
DEBUG=@bahmutov/cy-rollup
npm i @bahmutov/[email protected]
Metadata
- MIT
- Whatever
- Gleb Bahmutov
- released 5/7/2020