katoikia-app/web-ui/web-react/node_modules/pnp-webpack-plugin/ts.js

10 lines
531 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
const {resolveModuleName} = require(`ts-pnp`);
exports.resolveModuleName = (typescript, moduleName, containingFile, compilerOptions, resolutionHost) => {
return resolveModuleName(moduleName, containingFile, compilerOptions, resolutionHost, typescript.resolveModuleName);
};
exports.resolveTypeReferenceDirective = (typescript, moduleName, containingFile, compilerOptions, resolutionHost) => {
return resolveModuleName(moduleName, containingFile, compilerOptions, resolutionHost, typescript.resolveTypeReferenceDirective);
};