{"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,"search_vec":"'0.0.7':22 'activ':66 'advanc':84 'around':59 'bundl':4,10,41,62,90 'caution':73 'compil':51 'css':53 'default':31 'entri':28 'featur':85 'file':13,19,30,42 'full':50 'import':11,36 'initi':69 'inlin':34 'javascript':86 'lack':77 'less':5,12,17,29,47,61,89 'less-bundl':60 'mainten':78 'may':76 'merg':91 'modern':80 'one':40 'output':18 'plugin':3,8,44,88 'preprocess':48 'publish':70 'recurs':38 'releas':67 'rollup':2,7,81,87 'rollup-plugin-bundle-less':1 'sinc':68 'singl':16 'specifi':26 'statement':37 'styles.less':32 'target':45 'thin':57 'use':71 'version':21,82 'work':24 'wrapper':58","created_at":"2026-04-27T17:02:33.626796+00:00","updated_at":"2026-04-27T17:02:33.626796+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/katonadavid/rollup-plugin-bundle-less","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/rollup-plugin-bundle-less","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-07-26","install_tag":null}}