Rollup plugin that excludes files matching specified patterns from being bundled. Version 1.0.1 (latest) has no further releases. Inspired by blacklistify for Browserify, it provides a simple filtering mechanism to prevent accidental inclusion of modules (e.g., worker code in main bundle). Typically used early in plugin chain before resolvers like @rollup/plugin-node-resolve.
npm install rollup-plugin-blacklistVerified import paths — ran on the pinned version, not inferred.
Shows basic usage: import default export and pass array of regex patterns to exclude matching modules.
Ensure blacklist() is the first plugin in the plugins array.
Pass regex patterns: blacklist([/pattern/]).
Alternative: use a more comprehensive plugin like @rollup/plugin-inject or manual tree-shaking.
Install with npm install --save-dev rollup-plugin-blacklist and use default import: import blacklist from 'rollup-plugin-blacklist'.
No dependency data recorded yet.