rollup-package

raw JSON →
1.0.0 verified Fri May 01 auth: no javascript

rollup-package is a CLI tool for building and managing Rollup configurations, version 1.0.0. It provides a simplified interface for generating Rollup configs with common plugins and presets. The package is actively maintained with monthly releases. Key differentiators include automatic dependency resolution and built-in TypeScript support, reducing boilerplate compared to manual Rollup setup.

error Cannot find module 'rollup-package'
cause Package not installed or incorrect import path
fix
npm install rollup-package && ensure import path is correct
gotcha If no output format is specified, the default format is 'esm' which may not work in all environments.
fix Explicitly set output.format to 'cjs' or 'iife' if targeting CommonJS or browsers.
npm install rollup-package
yarn add rollup-package
pnpm add rollup-package

Generates a Rollup configuration with TypeScript and module resolution plugins using the createConfig helper.

import { createConfig } from 'rollup-package';

const config = createConfig({
  input: 'src/index.ts',
  output: { file: 'dist/bundle.js', format: 'esm' },
  plugins: ['typescript', 'resolve'],
});

export default config;