babel-plugin-optional-require
JSON →Babel plugin to transpile optional require() calls for bundlers like Metro that lack native support. Current stable version 0.3.1, last updated in 2019; low release cadence. Differentiator: replaces missing modules with an error-throwing IIFE so try/catch works at runtime, supports whitelist/blacklist for resolving. Not actively maintained but functional for its niche.
Traffic · last 30 days ↓71% vs prev 7d
total hits 20
actors 6 distinct systems
last hit 4d ago human
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇫🇷 France
Resources
API endpoints
compatibility /v1/registry/babel-plugin-optional-require/compatibility