UNPKG

1.48 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt
6 * The complete set of authors may be found at
7 * http://polymer.github.io/AUTHORS.txt
8 * The complete set of contributors may be found at
9 * http://polymer.github.io/CONTRIBUTORS.txt
10 * Code distributed by Google as part of the polymer project is also
11 * subject to an additional IP rights grant found at
12 * http://polymer.github.io/PATENTS.txt
13 */
14import File = require('vinyl');
15import { ResolvedUrl } from 'polymer-analyzer';
16import { Options } from 'polymer-bundler';
17import { ProjectConfig } from 'polymer-project-config';
18import { BuildAnalyzer } from './analyzer';
19import { AsyncTransformStream } from './streams';
20export { Options } from 'polymer-bundler';
21export declare class BuildBundler extends AsyncTransformStream<File, File> {
22 config: ProjectConfig;
23 private _buildAnalyzer;
24 private _bundler;
25 files: Map<ResolvedUrl, File>;
26 constructor(config: ProjectConfig, buildAnalyzer: BuildAnalyzer, options?: Options);
27 protected _transformIter(files: AsyncIterable<File>): AsyncIterable<File>;
28 private _buildBundles;
29 private _generateBundleManifest;
30 private _getFilesChangedSinceInitialAnalysis;
31 private _mapFile;
32 /**
33 * Removes all of the inlined files in a bundle manifest from the filemap.
34 */
35 private _unmapBundledFiles;
36}