bundle(manifest) {
        return __awaiter(this, void 0, void 0, function* () {
            const documents = new Map();
            manifest = manifest.fork();
            for (const bundleEntry of manifest.bundles) {
                const bundleUrl = bundleEntry[0];
                const bundle = { url: bundleUrl, bundle: bundleEntry[1] };
                const bundledAst = yield this._bundleDocument(bundle, manifest);
                documents.set(bundleUrl, { ast: bundledAst, files: Array.from(bundle.bundle.files) });
            }
            return { manifest, documents };
        });
    }
/**
     * Given a manifest describing the bundles, produce a collection of bundled
     * documents with HTML imports, external stylesheets and external scripts
     * inlined according to the options for this Bundler.
     *
     * @param manifest - The manifest that describes the bundles to be produced.
     */
Given a manifest describing the bundles, produce a collection of bundled
documents with HTML imports, external stylesheets and external scripts
inlined according to the options for this Bundler.

@param manifest - The manifest that describes the bundles to be produced.
Given a manifest describing the bundles produce a collection of bundled documents with HTML imports external stylesheets and external scripts inlined according to the options for this Bundler . @param manifest - The manifest that describes the bundles to be produced .
bundle(manifest) {
        return __awaiter(this, void 0, void 0, function* () {
            const documents = new Map();
            manifest = manifest.fork();
            for (const bundleEntry of manifest.bundles) {
                const bundleUrl = bundleEntry[0];
                const bundle = { url: bundleUrl, bundle: bundleEntry[1] };
                const bundledAst = yield this._bundleDocument(bundle, manifest);
                documents.set(bundleUrl, { ast: bundledAst, files: Array.from(bundle.bundle.files) });
            }
            return { manifest, documents };
        });
    }
bundle ( manifest ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const documents = new Map ( ) ; manifest = manifest . fork ( ) ; for ( const bundleEntry of manifest . bundles ) { const bundleUrl = bundleEntry [ 0 ] ; const bundle = { url : bundleUrl , bundle : bundleEntry [ 1 ] } ; const bundledAst = yield this . _bundleDocument ( bundle , manifest ) ; documents . set ( bundleUrl , { ast : bundledAst , files : Array . from ( bundle . bundle . files ) } ) ; } return { manifest , documents } ; } ) ; }
Given a manifest describing the bundles, produce a collection of bundled
 documents with HTML imports, external stylesheets and external scripts
 inlined according to the options for this Bundler.
Given a manifest describing the bundles produce a collection of bundled documents with HTML imports external stylesheets and external scripts inlined according to the options for this Bundler .