Registry / devops / rollup-plugin-bundle-less

rollup-plugin-bundle-less

JSON →
library0.0.7jsnpmunverified

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.

npm install rollup-plugin-bundle-less
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-BUND
R
rollup-plugin-bundle-less
devopsjavascriptv0.0.7
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ import lessBundler from 'rollup-plugin-bundle-less'
✗ import { lessBundler } from 'rollup-plugin-bundle-less'
The plugin exports a default function. Named import will result in undefined.
options (src, dest)
✓ lessBundler({ src: 'app.less', dest: 'dist/main.less' })
✗ lessBundler({ source: 'app.less', destination: 'dist/main.less' })
Only 'src' and 'dest' are recognized option keys. Using 'source' or 'destination' will be silently ignored.
CommonJS require
✓ const lessBundler = require('rollup-plugin-bundle-less').default
✗ const lessBundler = require('rollup-plugin-bundle-less')
In CJS environments, .default is needed because the package uses ESM export default.

Configures Rollup to bundle all LESS imports from src/styles.less into dist/bundled.less using rollup-plugin-bundle-less.

import lessBundler from 'rollup-plugin-bundle-less'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'esm' }, plugins: [ lessBundler({ src: 'src/styles.less', dest: 'dist/bundled.less' }) ] };
Debug
Known issues
gotchaPlugin does not compile LESS to CSS; output remains .less file.
fix
Use rollup-plugin-less or rollup-plugin-postcss if you need CSS output.
affects: all
gotchaOptions 'source' and 'destination' are silently ignored; use 'src' and 'dest'.
fix
Correct option keys: src, dest.
affects: all
breakingUnmaintained since 2019; may not work with Rollup >=3.
fix
Test compatibility or consider alternative plugins.
affects: >=3.0.0
Errors
Common errors & fixes
Cannot find module 'less-bundle'
Missing dependency less-bundle not installed automatically.
fix
Run 'npm install less-bundle' alongside this plugin.
TypeError: lessBundler is not a function
Used named import instead of default import, or used require without .default.
fix
Use default import: import lessBundler from 'rollup-plugin-bundle-less'
Error: Cannot read properties of undefined (reading 'src')
Plugin called without options object.
fix
Provide options object, e.g., lessBundler({ src: 'styles.less' })
Upgrade
Version history
0.0.7latest on npm
Audit
Dependencies
less-bundlerequiredCore bundling logic for resolving and merging LESS imports
Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
rollup-plugin-bundle-less — npm install rollup-plugin-bundle-less · libregistry