rollup-plugin-code-raker
JSON →A Rollup/Vite plugin that removes comments, console.* calls, and debugger statements from bundles after tree-shaking. Current stable version is 2.0.1, requiring Rollup >=4.0.0 or Vite >=5.0.0. It offers presets for application and library bundling with sensible defaults: the default preset removes all comments and console calls; the application preset preserves licensing comments and console.log/info/warn/error; the library preset preserves licensing and JSDoc comments. Fully configurable via options object, allowing fine-grained control over which comments and console methods to remove.
Resources
packagerollup-plugin-code-raker ↗