{"library":"rollup-plugin-prettier","title":"rollup-plugin-prettier","description":"Rollup plugin to format the final bundle with Prettier. Current stable version is 4.1.2, supports Prettier ^1.0.0 || ^2.0.0 || ^3.0.0 and Rollup ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0. Ships TypeScript types. Key differentiators: integrates Prettier as a Rollup plugin, handles source map generation by computing diffs. Release cadence is irregular, with recent updates focused on dependency upgrades and Rollup/Prettier version support.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install rollup-plugin-prettier"],"cli":null},"imports":["import prettier from 'rollup-plugin-prettier'","const prettier = require('rollup-plugin-prettier')","import type { PrettierOptions } from 'rollup-plugin-prettier'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import prettier from 'rollup-plugin-prettier';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'es',\n  },\n  plugins: [\n    prettier({\n      tabWidth: 2,\n      singleQuote: true,\n      parser: 'babel',\n    }),\n  ],\n});","lang":"typescript","description":"Configures Rollup to format output bundle with Prettier using tab width 2 and single quotes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}