import { ExternalOption, InputOptions as RollupInputOptions } from 'rollup'; /** * Options of `createInputOptions`. * * @export * @interface InputOptions */ export interface InputOptions { /** * Bundle's entry point * * @type {string} * @memberof InputOptions */ entry: string; /** * Minimize bundle? * * @type {boolean} * @memberof InputOptions */ minimize: boolean; /** * Enable SSR optimization * * @type {boolean} * @memberof InputOptions */ ssr: boolean; /** * Name of output bundled files (without extension) * * @type {string} * @memberof InputOptions */ fileName: string; /** * Alias to path * * @type {Record} * @memberof InputOptions */ alias: Record; /** * Define global constants to apply at compile time * * @type {Record} * @memberof InputOptions */ define: Record; /** * External dependencies (Rollup's `external`) * * @type {ExternalOption} * @memberof InputOptions */ externals: ExternalOption; /** * Is this bundle for web? * * @type {boolean} * @memberof InputOptions */ isWeb: boolean; } /** * Create Rollup's input options. * * @export * @param {string} entry Bundle's entry point * @param {boolean} minimize Minimize bundle? * @param {ExternalOption} [externals=['vue']] External dependencies. (Rollup's `external`) * @returns {RollupFileOptions} */ export default function createInputOptions(options: InputOptions): RollupInputOptions;