Registry / devops / rollup-standalone

rollup-standalone

JSON →
library0.42.9jsnpmunverified

A standalone, browser-ready bundle of Rollup (v0.42.9), the JavaScript module bundler. This package provides Rollup as a single file with no external dependencies, suitable for use in browsers or environments without a module system. It wraps Rollup's API, allowing bundling without Node.js. Note that this is an older Rollup version (0.x), not compatible with modern Rollup plugins or configuration. The package is minimal with no recent updates.

npm install rollup-standalone
INSTALL
IMPORT
SIG · ROLLUP-STANDALONE
R
rollup-standalone
devopsjavascriptv0.42.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

rollup
import rollup from 'rollup-standalone';
const rollup = require('rollup-standalone');
The package exports a single default function/object. ESM import is preferred, though CJS may work with bundlers.
rollup.watch
import rollup from 'rollup-standalone'; rollup.watch(options);
import { watch } from 'rollup-standalone';
watch is a method on the default export, not a named export.
rollup.rollup
import rollup from 'rollup-standalone'; const bundle = await rollup.rollup(inputOptions);
import { rollup } from 'rollup-standalone';
The build function is accessed as rollup.rollup (the default export is a function with methods).

Demonstrates building a module with rollup.standalone: creates a bundle and generates IIFE output.

// Basic usage: bundle a module import rollup from 'rollup-standalone'; async function bundle() { const bundle = await rollup.rollup({ input: './src/main.js' }); const { output } = await bundle.generate({ format: 'iife', name: 'MyBundle' }); for (const chunk of output) { console.log(chunk.code); } } bundle().catch(err => console.error(err));
Debug
Known issues
gotchaThe package wraps Rollup v0.42.9, which is very old. Modern Rollup plugins and configuration (e.g., using output.format) may not work.
fix
Use the official 'rollup' package instead, and ensure your configuration is compatible with Rollup 0.x.
affects: all
deprecatedThis package is no longer maintained. Use the official 'rollup' package which offers a standalone build via unpkg or cdn.
fix
Switch to 'rollup' and use the official browser build from https://unpkg.com/rollup/dist/rollup.js
affects: all
gotchaThe default export is a function with methods; named exports do not exist. Developers may incorrectly try to import { rollup } or { watch }.
fix
Always use the default import: import rollup from 'rollup-standalone'
affects: all
Errors
Common errors & fixes
rollup is not defined
Trying to use a named import or require without proper bundler/ESM support.
fix
import rollup from 'rollup-standalone' // default import
Cannot find module 'rollup'
Mistakenly trying to import 'rollup' instead of 'rollup-standalone'.
fix
import rollup from 'rollup-standalone';
Upgrade
Version history
0.42.9latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rollup-standalone — npm install rollup-standalone · libregistry