Registry / devops / rollup-webpack-loader

rollup-webpack-loader

JSON →
library1.0.0jsnpmunverified

Webpack loader that runs Rollup on matched files, allowing you to apply Rollup's tree-shaking and plugin ecosystem within a Webpack build pipeline. Version 1.0.0 is the latest and only release, and appears to be in maintenance mode with no recent updates. It combines Rollup for bundling with Webpack for module resolution and loader chaining. Unlike alternatives like @rollup/plugin-url or directly using Rollup, this loader integrates Rollup as a step in Webpack's build process.

npm install rollup-webpack-loader
INSTALL
IMPORT
SIG · ROLLUP-WEBPACK-LOA
R
rollup-webpack-loader
devopsjavascriptv1.0.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.

default
import rollupWebpackLoader from 'rollup-webpack-loader'
const rollupWebpackLoader = require('rollup-webpack-loader')
ESM default export; CommonJS require works but not recommended for tree-shaking.

Minimal webpack configuration using rollup-webpack-loader with default Rollup options.

// webpack.config.js import { resolve } from 'path'; export default { entry: './src/index.js', output: { path: resolve(__dirname, 'dist'), filename: 'bundle.js' }, module: { rules: [ { test: /\.js$/, use: { loader: 'rollup-webpack-loader', options: { rollup: { plugins: [] } } } } ] } };
Debug
Known issues
gotchaThe loader is not actively maintained; use with caution for modern webpack versions.
fix
Consider using @rollup/plugin-url or direct Rollup integration instead.
affects: >=1.0.0
breakingWebpack >=2 compatibility not tested; loader may not work with webpack 4+.
fix
Use webpack 1 or test thoroughly with your webpack version.
affects: >=1.0.0
gotchaWhen used with babel-loader, order matters and can break tree-shaking.
fix
Use rollup-plugin-babel instead of babel-loader for proper tree-shaking.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Module parse failed: Unexpected token (1:0)
The loader may not transpile ES6+ syntax without proper plugins configured.
fix
Add rollup-plugin-babel to the rollup options.
Error: Cannot find module 'rollup'
Rollup is not installed as a dependency.
fix
Run 'npm install rollup --save-dev' or 'yarn add rollup -D'.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
rolluprequiredCore bundler used to process modules
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-webpack-loader — npm install rollup-webpack-loader · libregistry