{"id":22321,"library":"rollup-webpack-loader","title":"rollup-webpack-loader","description":"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.","status":"maintenance","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/dfrankland/rollup-webpack-loader","tags":["javascript","rollup","webpack","loader"],"install":[{"cmd":"npm install rollup-webpack-loader","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-webpack-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-webpack-loader","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundler used to process modules","package":"rollup","optional":false}],"imports":[{"note":"ESM default export; CommonJS require works but not recommended for tree-shaking.","wrong":"const rollupWebpackLoader = require('rollup-webpack-loader')","symbol":"default","correct":"import rollupWebpackLoader from 'rollup-webpack-loader'"}],"quickstart":{"code":"// webpack.config.js\nimport { resolve } from 'path';\nexport default {\n  entry: './src/index.js',\n  output: {\n    path: resolve(__dirname, 'dist'),\n    filename: 'bundle.js'\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        use: {\n          loader: 'rollup-webpack-loader',\n          options: {\n            rollup: {\n              plugins: []\n            }\n          }\n        }\n      }\n    ]\n  }\n};","lang":"javascript","description":"Minimal webpack configuration using rollup-webpack-loader with default Rollup options."},"warnings":[{"fix":"Consider using @rollup/plugin-url or direct Rollup integration instead.","message":"The loader is not actively maintained; use with caution for modern webpack versions.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use webpack 1 or test thoroughly with your webpack version.","message":"Webpack >=2 compatibility not tested; loader may not work with webpack 4+.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use rollup-plugin-babel instead of babel-loader for proper tree-shaking.","message":"When used with babel-loader, order matters and can break tree-shaking.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Add rollup-plugin-babel to the rollup options.","cause":"The loader may not transpile ES6+ syntax without proper plugins configured.","error":"Error: Module parse failed: Unexpected token (1:0)"},{"fix":"Run 'npm install rollup --save-dev' or 'yarn add rollup -D'.","cause":"Rollup is not installed as a dependency.","error":"Error: Cannot find module 'rollup'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}