UNPKG

479 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.loadByChunkname = void 0;
4var metadata_1 = require("./metadata");
5/**
6 * loads chunk by a known chunkname
7 * @param {String} chunkName
8 */
9var loadByChunkname = function (chunkName) {
10 return Promise.all(metadata_1.markMeta.filter(function (meta) { return meta.chunkName === chunkName; }).map(function (meta) { return meta.loadable.load(); }));
11};
12exports.loadByChunkname = loadByChunkname;