{"id":22313,"library":"rollup-standalone","title":"rollup-standalone","description":"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.","status":"deprecated","version":"0.42.9","language":"javascript","source_language":"en","source_url":"https://github.com/jetiny/rollup-standalone","tags":["javascript"],"install":[{"cmd":"npm install rollup-standalone","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-standalone","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-standalone","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package exports a single default function/object. ESM import is preferred, though CJS may work with bundlers.","wrong":"const rollup = require('rollup-standalone');","symbol":"rollup","correct":"import rollup from 'rollup-standalone';"},{"note":"watch is a method on the default export, not a named export.","wrong":"import { watch } from 'rollup-standalone';","symbol":"rollup.watch","correct":"import rollup from 'rollup-standalone'; rollup.watch(options);"},{"note":"The build function is accessed as rollup.rollup (the default export is a function with methods).","wrong":"import { rollup } from 'rollup-standalone';","symbol":"rollup.rollup","correct":"import rollup from 'rollup-standalone'; const bundle = await rollup.rollup(inputOptions);"}],"quickstart":{"code":"// Basic usage: bundle a module\nimport rollup from 'rollup-standalone';\n\nasync function bundle() {\n  const bundle = await rollup.rollup({ input: './src/main.js' });\n  const { output } = await bundle.generate({ format: 'iife', name: 'MyBundle' });\n  for (const chunk of output) {\n    console.log(chunk.code);\n  }\n}\n\nbundle().catch(err => console.error(err));","lang":"javascript","description":"Demonstrates building a module with rollup.standalone: creates a bundle and generates IIFE output."},"warnings":[{"fix":"Use the official 'rollup' package instead, and ensure your configuration is compatible with Rollup 0.x.","message":"The package wraps Rollup v0.42.9, which is very old. Modern Rollup plugins and configuration (e.g., using output.format) may not work.","severity":"gotcha","affected_versions":"all"},{"fix":"Switch to 'rollup' and use the official browser build from https://unpkg.com/rollup/dist/rollup.js","message":"This package is no longer maintained. Use the official 'rollup' package which offers a standalone build via unpkg or cdn.","severity":"deprecated","affected_versions":"all"},{"fix":"Always use the default import: import rollup from 'rollup-standalone'","message":"The default export is a function with methods; named exports do not exist. Developers may incorrectly try to import { rollup } or { watch }.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"import rollup from 'rollup-standalone' // default import","cause":"Trying to use a named import or require without proper bundler/ESM support.","error":"rollup is not defined"},{"fix":"import rollup from 'rollup-standalone';","cause":"Mistakenly trying to import 'rollup' instead of 'rollup-standalone'.","error":"Cannot find module 'rollup'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}