A minimal, opinionated Rollup preset for bundling SolidJS libraries. v3.0.0 ships TypeScript types and supports ESM, CJS, UMD, JSX, and TSC output targets. Key differentiators: zero-config setup (two lines to start), automatic TypeScript, configurable targets, optional package.json generation, and best-practice export maps for SolidJS packages. Released under the MIT license with active maintenance. Suitable for both simple and multi-entry library builds, with support for IIFE builds and globals configuration.
npm install rollup-preset-solidVerified import paths — ran on the pinned version, not inferred.
Demonstrates minimal config with ESM and CJS outputs, plus hints for package.json fields.
Either provide globals mapping or override external: [] to bundle them.
Replace format: 'esm' with targets: ['esm'].
Always specify input for each config object in array.
Switch to import syntax or set type: 'module' in package.json.
Use default import: import withSolid from 'rollup-preset-solid'.
Provide globals option or override external to empty array.