
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
rollup-plugin-no-emit
Advanced tools
A Rollup plugin that skips emit for generated bundles.
npm install --save-dev rollup-plugin-no-emit
// ES6
import noEmit from 'rollup-plugin-no-emit';
// CommonJS
const { noEmit } = require('rollup-plugin-no-emit');
Use the plugin, example rollup.config.js
:
import noEmit from 'rollup-plugin-no-emit';
export default {
input: 'src/index.js',
output: { dir: 'dist' },
plugins: [noEmit(/* plugin options */)]
};
You can pass an options object to noEmit
with the following properties:
Type: boolean
Default: false
Set to true
to invalidate plugin and emit files.
Type: (fileName: string, output: OutputChunk | OutputAsset) => boolean
Return true
to skip emit for output file.
In the example below (rollup.config.js
), the output file dist/index.js
is emitted while dist/output.js
is skipped:
import noEmit from 'rollup-plugin-no-emit';
export default {
input: 'src/index.js',
output: [{ file: 'dist/index.js' }, { file: 'dist/output.js' }],
plugins: [noEmit({ match: file => file === 'output.js' })]
};
Licensed under the MIT License.
FAQs
A Rollup plugin that skips emit for generated bundles.
The npm package rollup-plugin-no-emit receives a total of 1,563 weekly downloads. As such, rollup-plugin-no-emit popularity was classified as popular.
We found that rollup-plugin-no-emit demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.