{"library":"rollup","title":"Rollup","description":"Rollup is a next-generation ES module bundler that compiles small pieces of code into larger, more complex libraries or applications. It uses the standardized ES module format, allowing for efficient tree-shaking and optimized bundles. The current stable version is 4.60.1, and it maintains an active release cadence with frequent bug fixes and minor feature additions.","language":"javascript","status":"active","last_verified":"Sat Apr 18","install":{"commands":["npm install rollup"],"cli":{"name":"rollup","version":null}},"imports":["import { rollup } from 'rollup';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport resolve 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: [resolve(), commonjs()]\n  });\n\n  await bundle.write({\n    file: 'dist/bundle.js',\n    format: 'iife',\n    name: 'myBundle',\n    sourcemap: true\n  });\n\n  console.log('Bundle created successfully!');\n}\n\nbuild().catch(console.error);","lang":"typescript","description":"This quickstart demonstrates using Rollup's JavaScript API to bundle an entry file (`src/main.js`) into an immediately invoked function expression (IIFE) for browser usage, including sourcemaps and common plugins for resolving Node.js modules and converting CommonJS.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}