swc.d.ts 470 B

1234567891011
  1. import type * as swcWasm from '@swc/wasm';
  2. import type { CreateTranspilerOptions, Transpiler } from './types';
  3. export 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. }
  11. export declare function create(createOptions: SwcTranspilerOptions): Transpiler;