1 | import * as rollup from 'rollup';
|
2 | import { TransformHook } from 'rollup';
|
3 | /**
|
4 | * Options used in `ng-packagr` for writing flat bundle files.
|
5 | *
|
6 | * These options are passed through to rollup.
|
7 | */
|
8 | export interface RollupOptions {
|
9 | moduleName: string;
|
10 | entry: string;
|
11 | format: rollup.ModuleFormat;
|
12 | dest: string;
|
13 | sourceRoot: string;
|
14 | umdModuleIds?: {
|
15 | [key: string]: string;
|
16 | };
|
17 | amd?: {
|
18 | id: string;
|
19 | };
|
20 | transform?: TransformHook;
|
21 | cache?: rollup.RollupCache;
|
22 | }
|
23 | /** Runs rollup over the given entry file, writes a bundle file. */
|
24 | export declare function rollupBundleFile(opts: RollupOptions): Promise<rollup.RollupCache>;
|