@ima/plugin-cli
Version:
IMA.js Plugin CLI tool to build, link, develop IMA.js plugins.
16 lines (15 loc) • 639 B
TypeScript
import { JscTarget, ModuleConfig, Options, ParserConfig, ReactConfig } from '@swc/core';
import { Transformer } from '../types';
export type SWCTransformerOptions = Options;
/**
* Helper function to create basic swc transformer config.
*/
export declare function createSwcTransformer({ type, target, syntax, development, jsxRuntime, sourceMaps, }: {
type: ModuleConfig['type'];
target: JscTarget;
syntax?: ParserConfig['syntax'];
development?: boolean;
jsxRuntime: ReactConfig['runtime'];
sourceMaps?: boolean;
}): Transformer;
export declare function swcTransformer(options: SWCTransformerOptions): Transformer;