UNPKG

lbundle

Version:

Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries

9 lines (8 loc) 388 B
import type { Options as SwcOptions } from '@swc/core'; import type { ContextModel } from '../models/context'; import type { OutputOptions } from 'rollup'; export type GetSwcConfigArg = { ts: boolean; jsx: boolean; }; export declare const getSwcConfig: ({ isTs, isJsx, pkg }: Pick<ContextModel, "isJsx" | "isTs" | "pkg">, { format }: Pick<OutputOptions, "format">) => SwcOptions;