{"id":21907,"library":"rollup-loader","title":"rollup-loader","description":"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.","status":"maintenance","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/egoist/rollup-loader","tags":["javascript","rollup","webpack","loader","bundle","js"],"install":[{"cmd":"npm install rollup-loader","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-loader","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used internally to accept input file from webpack","package":"rollup-plugin-memory","optional":false}],"imports":[{"note":"Options can be either an array of plugins or a Rollup options object with plugins property.","wrong":"use: 'rollup-loader' without options object","symbol":"rollup-loader","correct":"module.exports = { module: { rules: [{ test: /\\.js$/, loader: 'rollup-loader', options: { plugins: [] } }] } }"}],"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        loader: 'rollup-loader',\n        options: {\n          plugins: [] // Add rollup plugins here\n        }\n      }\n    ]\n  }\n};","lang":"javascript","description":"Shows how to configure webpack to use rollup-loader for .js files, passing rollup plugins via options."},"warnings":[{"fix":"Pin rollup-plugin-memory version or check compatibility.","message":"rollup-loader depends on rollup-plugin-memory which may have breaking changes.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install rollup-plugin-memory --save-dev","cause":"Missing peer dependency rollup-plugin-memory.","error":"Module not found: Error: Can't resolve 'rollup-plugin-memory' in '...'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}