UNPKG

470 BTypeScriptView Raw
1import type * as swcWasm from '@swc/wasm';
2import type { CreateTranspilerOptions, Transpiler } from './types';
3export interface SwcTranspilerOptions extends CreateTranspilerOptions {
4 /**
5 * swc compiler to use for compilation
6 * Set to '@swc/wasm' to use swc's WASM compiler
7 * Default: '@swc/core', falling back to '@swc/wasm'
8 */
9 swc?: string | typeof swcWasm;
10}
11export declare function create(createOptions: SwcTranspilerOptions): Transpiler;