{"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.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install rollup-no-tty-check"],"cli":{"name":"rollup","version":null}},"imports":["import { rollup } from 'rollup'","import { defineConfig } from 'rollup'","import type { Plugin } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}