babel-plugin-ts-optchain
JSON →Babel plugin that transforms optional chaining expressions (e.g., `obj?.prop`) for TypeScript using the ts-optchain approach. Version 1.1.5 (latest) is stable but unmaintained since 2020. Provides an alternative to TypeScript's native optional chaining for environments that don't support it, by converting `?.` into `_` wrapped calls. Works only with Babel, not tsc. No dependencies. Not recommended for new projects; prefer native optional chaining.
Traffic · last 30 days ↑29% vs prev 7d
total hits 29
actors 8 distinct systems
last hit 16h ago ByteDance
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · VN · 🇨🇦 Canada
Resources
API endpoints
compatibility /v1/registry/babel-plugin-ts-optchain/compatibility