1
0
mirror of https://github.com/oven-sh/setup-bun.git synced 2025-04-12 16:16:46 +08:00
2023-02-22 17:47:24 -08:00

12 lines
470 B
TypeScript

import type * as swcWasm from '@swc/wasm';
import type { CreateTranspilerOptions, Transpiler } from './types';
export interface SwcTranspilerOptions extends CreateTranspilerOptions {
/**
* swc compiler to use for compilation
* Set to '@swc/wasm' to use swc's WASM compiler
* Default: '@swc/core', falling back to '@swc/wasm'
*/
swc?: string | typeof swcWasm;
}
export declare function create(createOptions: SwcTranspilerOptions): Transpiler;