1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.loadByChunkname = void 0;
|
4 | var metadata_1 = require("./metadata");
|
5 | /**
|
6 | * loads chunk by a known chunkname
|
7 | * @param {String} chunkName
|
8 | */
|
9 | var 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 | };
|
12 | exports.loadByChunkname = loadByChunkname;
|