babel-plugin-unassert
JSON →Babel plugin that removes assertion calls (assert, console.assert, power-assert) from production builds. Current stable version is 3.2.0, compatible with Babel 7. Release cadence is low, with major versions tied to Babel major versions. Key differentiator: allows full use of assertions during development without runtime overhead in production, with support for ES modules and power-assert integration. Alternative to manual conditional wrapping or dead-code elimination.
Traffic · last 30 days ↑40% vs prev 7d
total hits 25
actors 8 distinct systems
last hit 2d ago AhrefsBot
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇪🇸 Spain
Resources
API endpoints
full doc /v1/registry/babel-plugin-unassert
compatibility /v1/registry/babel-plugin-unassert/compatibility