Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
80
A small tool that compiles JavaScript code while delegating helper functions to a shared runtime library, and can emit an external helpers bundle for script-tag usage.
@generates
export type ModuleFormat = "esm" | "cjs";
export interface TranspileOptions {
filename?: string;
format?: ModuleFormat;
sourceMaps?: boolean;
}
export interface TranspileResult {
code: string;
map?: object;
helpers: string[];
}
export function transpileWithRuntime(source: string, options?: TranspileOptions): Promise<TranspileResult>;
export function transpileBatch(sources: Record<string, string>, options?: TranspileOptions): Promise<Record<string, TranspileResult>>;
export interface ExternalHelpersOptions {
helpers: string[];
globalName?: string;
format?: "iife" | "umd";
}
export function buildExternalHelpersBundle(options: ExternalHelpersOptions): string;Provides parsing, transformation, and helper management for JavaScript sources. @satisfied-by
Importable helper modules that replace inlined helper code in transpiled output. @satisfied-by
Plugin that rewrites helper usage to pull from the runtime helper package with configurable module formats. @satisfied-by
Generates a standalone helper library string for non-module environments. @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