Registry / web-framework / rollup-start

rollup-start

JSON →
library0.2.5jsnpmunverified

A basic Rollup setup for React and styled-components. Version 0.2.5 is the latest release. Provides a self-executable configuration, but lacks active maintenance and documentation. Minimal dependencies: React ^16.9.0 and styled-components ^4.3.2. Not recommended for production.

npm install rollup-start
INSTALL
IMPORT
SIG · ROLLUP-START
R
rollup-start
web-frameworkjavascriptv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default
import rollupConfig from 'rollup-start'
const rollupConfig = require('rollup-start')
ESM-only package
start
import { start } from 'rollup-start'
import start from 'rollup-start'
Named export, not default
build
import { build } from 'rollup-start'
import { Build } from 'rollup-start'
Case-sensitive export

Shows how to import the default config and the start/build functions, then use them.

import rollupConfig from 'rollup-start'; import { start, build } from 'rollup-start'; // Example usage: const config = rollupConfig({ input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'cjs' }, plugins: [] }); start(config); // or build(config);
Debug
Known issues
breakingPackage is abandoned; no updates since 2019.
fix
Use an alternative like @rollup/plugin-babel or create-react-app.
affects: 0.2.5
deprecatedRequires React 16.9.0 and styled-components 4.3.2; incompatible with newer versions.
fix
Use a compatible React/styled-components version or migrate.
affects: >=0.2.5
gotchaMissing type definitions; not TypeScript-compatible out of the box.
fix
Use @rollup/plugin-typescript or manually add typings.
affects: 0.2.5
Errors
Common errors & fixes
Cannot find module 'rollup-start'
Package not installed or not in node_modules.
fix
Run: npm install rollup-start@0.2.5
Uncaught SyntaxError: Cannot use import statement outside a module
Trying to import ESM in a CommonJS environment.
fix
Add "type": "module" to package.json or use .mjs extension.
TypeError: rollup_config is not a function
Incorrect import or usage of default export.
fix
Use: import rollupConfig from 'rollup-start' (not require).
Upgrade
Version history
0.2.5latest on npm
Audit
Dependencies
reactrequiredpeer dependency required for JSX compilation
styled-componentsrequiredpeer dependency for CSS-in-JS support
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-start — npm install rollup-start · libregistry