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 stale · no recent hits
total hits 20
actors 4 distinct systems
last hit 17d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇨🇳 China · 🇩🇪 Germany
Resources
API endpoints
compatibility /v1/registry/babel-plugin-ts-optchain/compatibility