{"id":26323,"library":"rollup-no-tty-check","title":"Rollup","description":"Rollup is a module bundler for JavaScript that compiles ES6 modules into CommonJS, AMD, IIFE, or UMD formats. Current stable version is v0.0.2 (extremely early, pre-1.0). It pioneered tree-shaking for ES modules, making it popular for building libraries. Key differentiators vs webpack: smaller bundle sizes, faster builds for libraries, native ES module support. Releases are infrequent. Note: this package is abandoned; use the main 'rollup' package at npmjs.com/package/rollup.","status":"deprecated","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/GoJetty/rollup","tags":["javascript","modules","bundler","bundling","es6","optimizer","typescript"],"install":[{"cmd":"npm install rollup-no-tty-check","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-no-tty-check","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-no-tty-check","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since early versions. CommonJS require may work but is discouraged.","wrong":"const rollup = require('rollup')","symbol":"rollup","correct":"import { rollup } from 'rollup'"},{"note":"defineConfig is a named export, not default.","wrong":"import defineConfig from 'rollup'","symbol":"defineConfig","correct":"import { defineConfig } from 'rollup'"},{"note":"Types are exported as types; use import type for type-only imports in TypeScript.","wrong":"import { Plugin } from 'rollup'","symbol":"Plugin","correct":"import type { Plugin } from 'rollup'"}],"quickstart":{"code":"import { rollup } from 'rollup';\nimport { nodeResolve } from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/main.js',\n    plugins: [nodeResolve(), commonjs()]\n  });\n  const { output } = await bundle.generate({ format: 'cjs' });\n  for (const chunk of output) {\n    console.log(chunk.code);\n  }\n  await bundle.close();\n}\n\nbuild().catch(err => console.error(err));","lang":"typescript","description":"Shows basic rollup programmatic usage: bundle creation from an entry point, using plugins (node-resolve, commonjs), generating output, and closing the bundle."},"warnings":[{"fix":"Install the real rollup: npm install rollup@latest","message":"The 'rollup' package (v0.0.2) is an extremely early version. Most modern features (code splitting, plugins, etc.) are missing or unstable. Use the official 'rollup' package (>=1.0.0) instead.","severity":"breaking","affected_versions":"0.0.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev @rollup/plugin-node-resolve","cause":"The @rollup/plugin-node-resolve plugin not installed.","error":"Error: Cannot find module '@rollup/plugin-node-resolve'"},{"fix":"import { rollup } from 'rollup'; // correct named import","cause":"Importing 'rollup' as default instead of named export.","error":"TypeError: rollup is not a function"},{"fix":"Provide output options: await bundle.write({ format: 'cjs', dir: 'dist' });","cause":"Using bundle.write() without providing output options.","error":"Error: You must specify 'output.file' or 'output.dir' for code splitting"},{"fix":"npm install lodash","cause":"The lodash module is not installed or node-resolve plugin not configured correctly.","error":"(!) Plugin node-resolve: Could not resolve import 'lodash'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}