
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
cypress-rollup-preprocessor
Advanced tools
Cypress preprocessor for bundling JavaScript via rollup
First install node.js. Then:
npm install cypress-rollup-preprocessor --save-dev
This package relies on the following peer dependencies:
It is likely you already have these installed either directly or as a transient dependency, but if not, you will need to install them.
npm install --save-dev rollup
This version is only compatible with rollup 2.x+
In your project's plugins file:
const rollupPreprocessor = require("cypress-rollup-preprocessor");
module.exports = (on) => {
on("file:preprocessor", rollupPreprocessor());
};
Pass in options as the argument to rollup
:
const rollupPreprocessor = require('cypress-rollup-preprocessor')
// Using the options from rollup.config.js
const rollupConfig = require('../../rollup.config')
const { output: outputOptions, ...inputOptions } = rollupConfig
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on) => {
const options = {
inputOptions,
outputOptions,
}
on('file:preprocessor', rollupPreprocessor(options))
}
Object of rollup input options. You can just require
in the options from your
rollup.config.js
to use the same options as your app.
Reference: https://rollupjs.org/guide/en/#inputoptions-object
Object of rollup output options. Reference: https://rollupjs.org/guide/en/#outputoptions-object
Please read the Contributing guidelines.
To run tests, first install nodeunit and any dependencies via npm:
npm ci
Run tests with:
npm test
Many approaches, patterns and standards were copied from:
This project is licensed under the terms of the MIT license.
FAQs
Cypress preprocessor for bundling JavaScript via rollup
The npm package cypress-rollup-preprocessor receives a total of 8 weekly downloads. As such, cypress-rollup-preprocessor popularity was classified as not popular.
We found that cypress-rollup-preprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.