UNPKG

483 BTypeScriptView Raw
1import { PluginItem } from '@babel/core';
2import { ModuleFormat } from 'rollup';
3import type { BundleOptions } from './types';
4export declare type GetBabelConfigOptions = {
5 target: BundleOptions['target'];
6 type?: ModuleFormat;
7 typescript?: boolean;
8 runtimeHelpers?: boolean;
9 verbose?: boolean;
10 lazy?: boolean;
11 cwd?: string;
12};
13export default function getBabelConfig(opts: GetBabelConfigOptions): {
14 presets: PluginItem[];
15 plugins: PluginItem[];
16};