Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
80
Transforms JavaScript modules by instrumenting named functions and normalizing debug logging in a consistent, AST-driven way.
track("<name>") call as the first statement of every named function declaration or named function/arrow expression bound to a variable when the body is a block statement; the tracking string uses the function's declared identifier or the variable name, and nested functions follow the same rule. @testtrack unchanged to avoid duplicate instrumentation. @testconsole.log and console.debug calls inside instrumented functions to logger.debug, preserving the original argument order and count. @testimport { track, logger } from "telemetry"; at the top of the module whenever instrumentation or log normalization occurs, merging with an existing import from that source instead of duplicating specifiers. @test@generates
/**
* Transforms a JavaScript module string by instrumenting named functions and normalizing debug logging.
* Returns the transformed source text.
*/
export function transformModule(sourceCode);Provides AST traversal and mutation utilities for walking module structure.
Parses JavaScript/TypeScript source text into an AST compatible with traversal.
Constructs and compares AST nodes used while mutating the tree.
Converts a transformed AST back into source text while preserving valid syntax.
Install with Tessl CLI
npx tessl i tessl/npm-babel--preset-stage-0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10