A Rollup plugin that automatically generates the Prisma client (`@prisma/client`) during the bundle step. Current stable version is 1.0.0. It is a lightweight wrapper around `prisma generate`, intended for use in Rollup builds. Differentiators include automatic schema detection, promise-based generation before build, and TypeScript support. It has peer dependencies on Rollup 2 or 3 and `picocolors`. Designed for projects using Prisma ORM with Rollup.
npm install rollup-plugin-prisma-generateVerified import paths — ran on the pinned version, not inferred.
Shows basic Rollup config using the plugin to auto-generate @prisma/client.
Install prisma and verify prisma/schema.prisma exists.
Add error handling or run prisma generate manually to debug.
Upgrade plugin or use onRollupOptions hook if moving to Rollup 4.
npm install picocolors
Use Rollup 2 or 3, or wait for plugin update.