Registry / devops / rollup-loader

rollup-loader

JSON →
library0.3.0jsnpmunverified

A webpack loader that integrates Rollup into the webpack build pipeline. Version 0.3.0 (latest) allows using Rollup to process JavaScript files before webpack finishes bundling. It accepts custom Rollup plugins and passes the processed result and sourcemaps back to webpack. Useful for leveraging Rollup's tree-shaking and ES module handling within a webpack workflow. No recent updates; appears stable but not actively developed.

npm install rollup-loader
INSTALL
IMPORT
SIG · ROLLUP-LOADER
R
rollup-loader
devopsjavascriptv0.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rollup-loader
module.exports = { module: { rules: [{ test: /\.js$/, loader: 'rollup-loader', options: { plugins: [] } }] } }
use: 'rollup-loader' without options object
Options can be either an array of plugins or a Rollup options object with plugins property.

Shows how to configure webpack to use rollup-loader for .js files, passing rollup plugins via options.

// webpack.config.js module.exports = { module: { rules: [ { test: /\.js$/, loader: 'rollup-loader', options: { plugins: [] // Add rollup plugins here } } ] } };
Debug
Known issues
breakingrollup-loader depends on rollup-plugin-memory which may have breaking changes.
fix
Pin rollup-plugin-memory version or check compatibility.
affects: >=0.1.0
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'rollup-plugin-memory' in '...'
Missing peer dependency rollup-plugin-memory.
fix
npm install rollup-plugin-memory --save-dev
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
rollup-plugin-memoryrequiredUsed internally to accept input file from webpack
Agent activity
9 hits · last 30 days
node
6
OpenAI (training)
1
Resources
rollup-loader — npm install rollup-loader · libregistry