{"id":21941,"library":"rollup-plugin-bundle-less","title":"rollup-plugin-bundle-less","description":"A Rollup plugin that bundles imported LESS files into a single LESS output file at version 0.0.7. It works by specifying an entry LESS file (default styles.less), then inlining all @import statements recursively into one bundled file. This plugin targets only LESS preprocessing, not full compilation to CSS. It is a thin wrapper around less-bundle and has no active releases since initial publish; use with caution as it may lack maintenance for modern Rollup versions or advanced features.","status":"maintenance","version":"0.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/katonadavid/rollup-plugin-bundle-less","tags":["javascript","rollup","plugin","less","bundle","merge"],"install":[{"cmd":"npm install rollup-plugin-bundle-less","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-bundle-less","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-bundle-less","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundling logic for resolving and merging LESS imports","package":"less-bundle","optional":false}],"imports":[{"note":"The plugin exports a default function. Named import will result in undefined.","wrong":"import { lessBundler } from 'rollup-plugin-bundle-less'","symbol":"default","correct":"import lessBundler from 'rollup-plugin-bundle-less'"},{"note":"Only 'src' and 'dest' are recognized option keys. Using 'source' or 'destination' will be silently ignored.","wrong":"lessBundler({ source: 'app.less', destination: 'dist/main.less' })","symbol":"options (src, dest)","correct":"lessBundler({ src: 'app.less', dest: 'dist/main.less' })"},{"note":"In CJS environments, .default is needed because the package uses ESM export default.","wrong":"const lessBundler = require('rollup-plugin-bundle-less')","symbol":"CommonJS require","correct":"const lessBundler = require('rollup-plugin-bundle-less').default"}],"quickstart":{"code":"import lessBundler from 'rollup-plugin-bundle-less';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    lessBundler({\n      src: 'src/styles.less',\n      dest: 'dist/bundled.less'\n    })\n  ]\n};","lang":"javascript","description":"Configures Rollup to bundle all LESS imports from src/styles.less into dist/bundled.less using rollup-plugin-bundle-less."},"warnings":[{"fix":"Use rollup-plugin-less or rollup-plugin-postcss if you need CSS output.","message":"Plugin does not compile LESS to CSS; output remains .less file.","severity":"gotcha","affected_versions":"all"},{"fix":"Correct option keys: src, dest.","message":"Options 'source' and 'destination' are silently ignored; use 'src' and 'dest'.","severity":"gotcha","affected_versions":"all"},{"fix":"Test compatibility or consider alternative plugins.","message":"Unmaintained since 2019; may not work with Rollup >=3.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install less-bundle' alongside this plugin.","cause":"Missing dependency less-bundle not installed automatically.","error":"Cannot find module 'less-bundle'"},{"fix":"Use default import: import lessBundler from 'rollup-plugin-bundle-less'","cause":"Used named import instead of default import, or used require without .default.","error":"TypeError: lessBundler is not a function"},{"fix":"Provide options object, e.g., lessBundler({ src: 'styles.less' })","cause":"Plugin called without options object.","error":"Error: Cannot read properties of undefined (reading 'src')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}