保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/style-resources-loader/lib/utils/inject-resources.js
@@ -2,13 +2,14 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectResources = void 0;
const error_message_1 = require("./error-message");
exports.injectResources = async (options, source, resources) => {
const injectResources = async (ctx, options, source, resources) => {
    const { injector } = options;
    const dist = injector(source, resources);
    const dist = injector.call(ctx, source, resources);
    const content = await dist;
    if (typeof content !== 'string') {
        throw new Error(error_message_1.errorMessage.invalidInjectorReturn);
    }
    return content;
};
exports.injectResources = injectResources;
//# sourceMappingURL=inject-resources.js.map