babel-plugin-ts-optchain

JSON →
library 1.1.5 ·javascript maintenance
verified May 27, 2026

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.

total hits 29
actors 8 distinct systems
last hit 16h ago ByteDance
ByteDance
6
MetaBot
4
GPTBot
2
Script
1
Amazonbot
1
Search engines
1
Humans
6

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · VN · 🇨🇦 Canada