Rollup is a module bundler for JavaScript that compiles small pieces of code into larger, optimized bundles using ES module format. Current stable version is v4.60.2, with active development and frequent releases. Rollup focuses on ES module tree-shaking and produces smaller, faster bundles compared to other bundlers. It supports plugins, multiple output formats (ESM, CJS, IIFE, UMD, AMD), and has both CLI and JavaScript API. Ships TypeScript types.
npm install rollup-esm-206No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using ESM config file, bundling a single input to an ES module output.
Update to Node.js >=14. Use `import` instead of `require()` for rollup API.
Use Node.js >=14.18.0 (or >=16 for some features).
Use the separate `resolveImportAttributes` hook or attach attributes via module info.
Set `output.dynamicImportInCjs: 'false'` in rollup config.
Run `npm install rollup` and ensure your project is configured for ESM (e.g., `"type": "module"` in package.json or use .mjs file extension).
Rename config file to `rollup.config.mjs` or add `"type": "module"` to package.json.
Install the missing dependency and ensure it is listed in package.json. Also check if the plugin is configured correctly.
Use `const { rollup } = await import('rollup')` or switch to ESM imports.No dependency data recorded yet.