A Rollup and Vite plugin that bundles Pino logger and its transports (e.g., pino-pretty, pino-loki) into the application output. Current stable version is 1.0.2. This plugin addresses the unique challenges of bundling Pino's worker threads and file transports, ensuring they function correctly in bundled applications. It integrates seamlessly with both Rollup and Vite, supporting custom directories for pino files and transports. The plugin includes caching for improved build performance and ships with TypeScript type definitions. It is actively maintained on GitHub.
npm install rollup-plugin-pino-bundleVerified import paths — ran on the pinned version, not inferred.
Shows how to configure pinoBundle with Vite, including a transport (pino-pretty).
Add all required transport module names to the 'transports' array in the plugin configuration.
For development, consider using Pino's default configuration without the plugin, or test in production builds.
Ensure your output directory is clean and that you don't have conflicting files with the same names.
Add 'pino-pretty' to the transports array: { transports: ['pino-pretty'] }Use default import: import pinoBundle from 'rollup-plugin-pino-bundle'
No dependency data recorded yet.