{"library":"rollup-plugin-deassert","title":"rollup-plugin-deassert","description":"Rollup plugin to remove assert, invariant, and similar statements from production bundles. Current stable version: 1.3.2 (2024-08-23). Release cadence: active development with frequent updates. Key differentiator: supports both ESM and CJS, ships TypeScript definitions, and handles conditional expressions. Unlike alternatives, it integrates naturally with Rollup's plugin system and respects source maps. Peer dependencies: acorn ^8.12.1 and rollup ^4.20.0.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-deassert"],"cli":null},"imports":["import { rollupPlugin as deassert } from 'rollup-plugin-deassert'","import deassert from 'rollup-plugin-deassert'","import type { DeassertOptions } from 'rollup-plugin-deassert'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport { rollupPlugin as deassert } from 'rollup-plugin-deassert';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'cjs'\n  },\n  plugins: [\n    deassert({\n      include: ['**/*.ts'],\n      sourcemap: true\n    })\n  ]\n};","lang":"typescript","description":"Example of using rollup-plugin-deassert in a Rollup config to strip assert statements from TypeScript files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}