Babel syntax plugin that enables parsing of class properties, private properties, and private methods
94
A Babel plugin that refuses to run on unsupported Babel core versions while enabling class field syntax parsing without emitting transforms.
transformSync call both apply the version guard and allow class field syntax parsing on supported versions. @test@generates
/**
* Creates a Babel plugin that enforces supported Babel core versions
* before enabling parser support for class fields and private members.
*
* @param {object} api - Babel plugin API object provided by Babel.
* @returns {object} Babel plugin definition exposing a name and manipulateOptions hook.
*/
export default function classFieldsVersionGate(api);Enables Babel parser support for class fields, private fields, and private methods without transforming output. @satisfied-by
Provides the Babel core runtime needed to initialize and version-check plugins programmatically. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-babel--plugin-syntax-class-properties