The npm package babel-plugin-transform-class-constructor-call saw frequent releases in late 2015 and early 2016, with a peak of 9 versions in November 2015. Release frequency then drastically decreased, with only a few releases scattered between late 2016 and early 2017. Since April 2017, there have been no new releases of the package up to September 2025.
babel-plugin-transform-class-constructor-call is a Babel plugin that transforms class constructor calls into normal function calls. This enables more flexible dependency injection and mocking during testing, particularly when dealing with classes that perform significant setup in their constructors. By converting new MyClass() to a standard function call, the plugin allows for easier interception and manipulation of the instantiation process via techniques like proxying or stubbing. Ultimately, this plugin enhances the testability and maintainability of JavaScript codebases utilizing modern class syntax.
Babel-plugin-transform-class-constructor-call downloads peaked in November 2024 at 3.39 million. A general uptrend was observed until then, followed by a decline into early 2025. Downloads are volatile from March to August 2025, and a further decrease is present in September 2025.