UNPKG

714 BTypeScriptView Raw
1import type { OutputAsset, OutputChunk, RollupCache } from 'rollup';
2import { OutputFileCache } from '../ng-package/nodes';
3/**
4 * Options used in `ng-packagr` for writing flat bundle files.
5 *
6 * These options are passed through to rollup.
7 */
8export interface RollupOptions {
9 moduleName: string;
10 entry: string;
11 entryName: string;
12 dir: string;
13 sourceRoot: string;
14 cache?: RollupCache;
15 cacheDirectory?: string | false;
16 fileCache: OutputFileCache;
17 cacheKey: string;
18}
19/** Runs rollup over the given entry file, writes a bundle file. */
20export declare function rollupBundleFile(opts: RollupOptions): Promise<{
21 cache: RollupCache;
22 files: (OutputChunk | OutputAsset)[];
23}>;