import { ModuleFormat, OutputOptions as RollupOutputOptions } from 'rollup'; /** * Options of `createOutputOptions`. * * @export * @interface OutputOptions */ export interface OutputOptions { /** * Bundle file's name. (Don't need extension. Just file's name.) * * @type {string} * @memberof OutputOptions */ fileName: string; /** * File name suffix. * * @type {string} * @memberof OutputOptions */ suffix: string; /** * Bundle output format. * * @type {ModuleFormat} * @memberof OutputOptions */ format: ModuleFormat; /** * Library's name. * * @type {string} * @memberof OutputOptions */ libraryName: string; /** * Output directory. * * @type {string} * @default 'dist' * @memberof OutputOptions */ outDir: string; /** * Use source map? * * @type {boolean} * @default true * @memberof OutputOptions */ sourceMap: boolean; /** * Global variables of external dependencies * * @type {Record} * @memberof OutputOptions */ globals: Record; } /** * Create Rollup's output options. * * @export * @param {OutputOptions} options Options * @returns {RollupOutputOptions} */ export default function createOutputOptions(options: OutputOptions): RollupOutputOptions;