You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
773 B
19 lines
773 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.loadResources = void 0;
|
|
const get_resources_1 = require("./get-resources");
|
|
const inject_resources_1 = require("./inject-resources");
|
|
const normalize_options_1 = require("./normalize-options");
|
|
const loadResources = async (ctx, source, callback) => {
|
|
try {
|
|
const options = (0, normalize_options_1.normalizeOptions)(ctx);
|
|
const resources = await (0, get_resources_1.getResources)(ctx, options);
|
|
const content = await (0, inject_resources_1.injectResources)(ctx, options, source, resources);
|
|
callback(null, content);
|
|
}
|
|
catch (err) {
|
|
callback(err);
|
|
}
|
|
};
|
|
exports.loadResources = loadResources;
|
|
//# sourceMappingURL=load-resources.js.map
|