Registry / devops / rollup-simple-configer

rollup-simple-configer

JSON →
library0.1.3jsnpmunverified

A utility to quickly generate Rollup configurations for TypeScript projects. Version 0.1.3, stable but infrequent releases. Simplifies setup with minimal boilerplate, handling TypeScript compilation, CommonJS/ESM output, and external dependencies. Different from manual configs by offering a declarative API with sensible defaults, reducing the learning curve for bundling TypeScript with Rollup. Currently without active maintenance updates.

npm install rollup-simple-configer
INSTALL
IMPORT
SIG · ROLLUP-SIMPLE-CONF
R
rollup-simple-configer
devopsjavascriptv0.1.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createConfig
import { createConfig } from 'rollup-simple-configer'
const { createConfig } = require('rollup-simple-configer')
Package is ESM-only since v0.1.0
default
import createConfig from 'rollup-simple-configer'
const createConfig = require('rollup-simple-configer')
Default export available, but prefer named import for clarity
ConfigOptions
import type { ConfigOptions } from 'rollup-simple-configer'
TypeScript type, not a runtime value, only for type annotations

Creates a Rollup configuration for a TypeScript project with CJS and ESM outputs, using @rollup/plugin-typescript.

import { createConfig } from 'rollup-simple-configer'; import typescript from '@rollup/plugin-typescript'; const config = createConfig({ input: 'src/index.ts', output: [ { file: 'dist/bundle.cjs.js', format: 'cjs' }, { file: 'dist/bundle.esm.js', format: 'esm' } ], plugins: [typescript()], external: ['lodash'] }); export default config;
Debug
Known issues
breakingPackage is ESM-only; importing via require() or using CJS projects will fail.
fix
Use dynamic import() or switch project to ESM.
affects: >=0.1.0
deprecatedAll options are considered stable, but no active development is expected. Consider manual Rollup config for complex needs.
fix
Evaluate if custom config is needed.
affects: 0.1.x
gotchaThe `plugins` option must include an array of Rollup plugins; it does not preset TypeScript plugin automatically.
fix
Always pass the desired plugins in the options.
affects: >=0.1.0
gotchaThe package does not handle TypeScript config resolution; tsconfig must be handled separately via plugin options.
fix
Configure TypeScript plugin explicitly with tsconfig path.
affects: >=0.1.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/rollup-simple-configer/index.mjs not supported.
Package is ESM-only, but importing via require() in CommonJS project.
fix
Use dynamic import() or refactor project to use ESM.
TypeError: Plugin is not a function
Passing a plugin constructor instead of an instance in plugins array.
fix
Ensure plugins are instantiated (e.g., typescript() instead of typescript).
Upgrade
Version history
0.1.3latest on npm
Audit
Dependencies
rolluprequiredPeer dependency; required to run the generated config
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-simple-configer — npm install rollup-simple-configer · libregistry