babel-plugin-transform-class-constructor-call (deprecated)

JSON →
library 6.24.1 ·javascript deprecated
verified May 27, 2026

This deprecated Babel plugin (v6.24.1, last release 2017) transforms the withdrawn TC39 proposal for call constructor syntax in ES2015 classes. It allows a class to have a 'call constructor' that is invoked when the class is called without 'new', enabling patterns like Date() returning a string while new Date() returns an instance. The proposal was withdrawn and is superseded by decorators. This plugin is part of Babel v6 era and is not compatible with Babel v7+. Developers should not use it in new projects; instead, use modern patterns like static methods or decorators.

total hits 44
actors 8 distinct systems
last hit 1d ago human
Amazonbot
4
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Search engines
1
Humans
6

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