Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
80
Create a minimal compiler wrapper that accepts selected experimental language syntax without performing any transforms, returning the original code and parse artifacts for downstream tooling.
const result = value |> double |> (x => x + 1); returns the identical code string. @testdo-expressions succeeds and exposes an AST object with the expected top-level type marker. @testpipeline-operator in the allowlist fails with a clear error that names the missing feature. @testpipeline-operator, one with do-expressions) operate independently; enabling a feature in one does not make it available in the other. @test@generates
/**
* Creates a syntax-only compiler that accepts selected experimental language features and leaves code unchanged.
*
* @param {string[]} features - Identifiers for syntax features to enable (e.g., "pipeline-operator", "do-expressions").
* @returns {(source: string) => { code: string, ast: object, enabled: string[] }}
*/
export function createSyntaxOnlyCompiler(features);Provides parsing and code generation infrastructure. @satisfied-by
Enables parsing of experimental syntax without applying transforms. @satisfied-by
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