"use strict";
/*
 * Copyright 2018, collaboration Factory AG. All rights reserved.
 */
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
/*
    This file is configured by `TypescriptCompiler` as a loader for Webpack
 */
function default_1(source, map) {
    // @ts-ignore
    if (this.resourcePath === path.resolve(this.rootContext, this.query.entry)) {
        const requireContext = '\n//======================================================\n' +
            'exports.default = require.context(".", true, /.js$/);\n' +
            '//======================================================\n';
        source = source + requireContext;
    }
    this.callback(null, source, map);
}
exports.default = default_1;
//# sourceMappingURL=contextInjectorLoader.js.map