katoikia-app/web-ui/web-react/node_modules/fork-ts-checker-webpack-plugin/lib/resolution.js

25 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function makeResolutionFunctions(resolveModuleName, resolveTypeReferenceDirective) {
resolveModuleName =
resolveModuleName ||
((
// tslint:disable-next-line:no-shadowed-variable
typescript, moduleName, containingFile,
// tslint:disable-next-line:no-shadowed-variable
compilerOptions, moduleResolutionHost) => {
return typescript.resolveModuleName(moduleName, containingFile, compilerOptions, moduleResolutionHost);
});
resolveTypeReferenceDirective =
resolveTypeReferenceDirective ||
((
// tslint:disable-next-line:no-shadowed-variable
typescript, typeDirectiveName, containingFile,
// tslint:disable-next-line:no-shadowed-variable
compilerOptions, moduleResolutionHost) => {
return typescript.resolveTypeReferenceDirective(typeDirectiveName, containingFile, compilerOptions, moduleResolutionHost);
});
return { resolveModuleName, resolveTypeReferenceDirective };
}
exports.makeResolutionFunctions = makeResolutionFunctions;
//# sourceMappingURL=resolution.js.map