A Broccoli plugin that bundles input files using Rollup.js. This is a stable v5 release (2022) with TypeScript definitions. It supports basic bundling, code splitting, and multiple outputs. Key differentiators: it preserves Broccoli's immutable input model by using a cache directory and symlinks node_modules, ensuring compatibility with Rollup's CLI features. Alternatives like ember-auto-import are Ember-specific; this is a generic Broccoli plugin.
npm install broccoli-rollupVerified import paths — ran on the pinned version, not inferred.
Shows basic usage: import the default export, call with input directory and Rollup configuration.
Upgrade Node to >=12 or stay on v4.x (but v4 is unmaintained).
Use import syntax or downgrade to v4.x if CJS is required.
Set nodeModulesPath explicitly if your node_modules is not at cwd.
Avoid onwrite; use broccoli output directly instead.
Install: npm install --save-dev broccoli-rollup / Use ESM import, not require().
Use a path relative to the broccoli input directory (e.g., 'index.js').
Switch to import syntax or downgrade to v4.x.